Question: Using a script ( code ) file, write the following functions: Write the definition of a furction that takes one number, that represents a temperature

Using a script (code) file, write the following functions:
Write the definition of a furction that takes one number, that represents a temperature in Fahrenheit. The function prints the equivalent temperature in degrees Celsius. (1 point)
Write the definition of another function that takes two numbers, that represent speed in miles/hour and time in minutes. The function prints the distance traveled based on that speed and time. (1 points)
Write the definition of a function named main. It takes no input, hence empty parenthesis, and does the following:
starts by showing on 3 lines using one print statement (you'll need to use the escape character for the new line) the following:
Enter 1 to convert Fahrenheit temperature to Celsius
Enter to calculate distance travelled
Enter 3 to exit
uses one input statement to get which number the user wants to input (1 or 2). Call this main_input. Make sure to make main_input an integer.
if main_input contains 1, get one input then call the function of step 1 and pass it the input. After this line, call main.
if main_input contains 2, get two more inputs and call the function of step 2 and pass it those two inputs; watch out for the order.After this line call main.
if main_input contains 3, then print a good bye message. Do not call main, as this will cause 'us' not to exit.
if main-input is none of the above, print an error message, then call main.
After you complete the definition of the function main, write a statement to call main. (3 points)
Below is an example of how the code should look like:
#Sample Code by Student Name
#Created on Some Date
 Using a script (code) file, write the following functions: Write the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!