Question: Write two functions. Function fahr_to_cel will return the Celsius equivalent of a Fahrenheit temperature. Function cel_to_fahr will return the Fahrenheit equivalent of a Celsius temperature.

Write two functions. Function fahr_to_cel will return the

Celsius equivalent of a Fahrenheit temperature. Function cel_to_fahr will return the Fahrenheit equivalent of a Celsius temperature. For each function, it will pass the temperature into the function. The function will convert the temperature and return the result.

In the main program, it will display a menu:

1. Convert Celsius to Fahrenheit 2. Convert Fahrenheit to Celcius 3. Print a Fahrenheit equivalent table 4. Print a Celsius equivalent table 5. Exit

If the user selects 1, it will ask the user for the Celsius temperature. Call the appropriate function with the value supplied by the user and display the result on the screen.

If the user selects 2, it will ask the user for the Fahrenheit temperature. Call call the appropriate function with the value supplied by the user and display the result on the screen.

If the user selects 3, it will ask the user for the beginning and ending of the range of values to convert. Then it will display the Celsius value and equivalent Fahrenheit value in a neat tabular format the minimizes the number of lines of output while remaining readable.

If the user selects 4, it will ask the user for the beginning and ending of the range of values to convert. It will then display the Fahrenheit value and equivalent Celsius value in a neat tabular format the minimizes the number of lines of output while remaining readable.

The program will continue to run until the user selects option 5.

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!