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 01:30
How will you cite information that is common knowledge in your research paper?
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
From excel to powerpoint, you can copy and paste a. cell ranges and charts, one at a time. b. cell ranges and charts, simultaneously. c. charts only. d. cell ranges only.
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
question
Computers and Technology, 24.06.2019 07:20
Ingrid started speaking about her slide presentation. when she clicked to th"third slide, which had just a picture of an elephant, she forgot what she wassupposed to talk about. what could ingrid do to avoid this situation in thefuture? oa. print handouts for her audience.ob. add presenter's notes to each slide.oc. add a video to each slide.od. save her slide presentation to a flash drive
Answers: 2
You know the right answer?
Using a script (code) file, write the following functions:
1. write the definition of a func...
Questions
question
History, 20.10.2019 16:50
question
History, 20.10.2019 16:50
Questions on the website: 13722361