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. point
Write the definition of another function that takes two numbers, that represent speed in mileshour and time in minutes. The function prints the distance traveled based on that speed and time. points
Write the definition of a function named main. It takes no input, hence empty parenthesis, and does the following:
starts by showing on lines using one print statement youll need to use the escape character for the new line the following:
Enter to convert Fahrenheit temperature to Celsius
Enter to calculate distance travelled
Enter to exit
uses one input statement to get which number the user wants to input or Call this maininput. Make sure to make maininput an integer.
if maininput contains get one input then call the function of step and pass it the input. After this line, call main.
if maininput contains get two more inputs and call the function of step and pass it those two inputs; watch out for the order.After this line call main.
if maininput contains then print a good bye message. Do not call main, as this will cause us not to exit.
if maininput 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. points
Below is an example of how the code should look like:
#Sample Code by Student Name
#Created on Some Date
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
