subject

Using a script (code) file, write the following functions:
1. write the definition of a function that take one number, that represents a temperature in fahrenheit and prints the equivalent temperature in degrees celsius.
2. write the definition of another function that takes one number, that represents speed in miles/hour and prints the equivalent speed in meters/second.
3. write the definition of a function named main. it takes no input, hence empty parenthesis, and does the following:
o prints enter 1 to convert fahrenheit temperature to celsius
o prints on the next line, enter 2 to convert speed from miles per hour to meters per second.
o take the input, lets call this main input, and if it is 1, get one input then call the function of step 1 and pass it the input.
o if main input is 2, get one more input and call the function of step 2.
o if main input is neither 1 or 2, print an error message.
after you complete the definition of the function main, write a statement to call main.
below is an example of how the code should look like:
#sample code by student name #created on some date #last edit on another date
def func1(x):
print(x)
def func2(y):
print(y)
print(' ')
print(y)
def main():
func1('hello world')
func2('hello again')
#below we start all the action
main()
remember to add comments, and that style and best practices will counts towards the points. a program that just "works" is not a guarantee for full credit. submit your source code file.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
Melissa needs to add a topic to an email that she will send to her teacher. choose the name of the field where she should type her topic.
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Type the correct answer in the box. spell all words correctly. under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
You know the right answer?
Using a script (code) file, write the following functions:
1. write the definition of a func...
Questions
question
Biology, 21.03.2021 14:00
question
Mathematics, 21.03.2021 14:00
question
Social Studies, 21.03.2021 14:00
question
Chemistry, 21.03.2021 14:00
Questions on the website: 13722367