Question: Write a program that gives the user a menu to choose from 1 . Convert temperature input from the user in degrees Fahrenheit to degrees

Write a program that gives the user a menu to choose from
1. Convert temperature input from the user in degrees Fahrenheit to degrees Celsius
2. Convert temperature input from the user in degrees Celsius to degrees Fahrenheit
3. Quit.
Formulae you will need:C =(5/9)*(F-32) and F =(9/5)* C +32
1. Use functions to accomplish 1 and 2 above.
2. Use at least one function for each scenario (i.e. converting temperature from degrees Fahrenheit to degrees Celsius and from degrees Celsius to degrees Fahrenheit). You mustcall them from the mainfunction. You can use more functions if you see fit to do so.
Test the program with the following values:
68 degree F =20 degree C
20 degree C =68 degree F
-22 degree F =-30 degree C
0 degree C =32 degree F

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 Programming Questions!