Question: Write a menu driven program with the following choice of submenu items: Enter 1 to convert from Celsius to Fahrenheit Enter 2 to convert from

Write a menu driven program with the following choice of submenu items:
Enter 1 to convert from Celsius to Fahrenheit
Enter 2 to convert from Fahrenheit to Celsius
Select 1 or 2:
Use a function Celsius which returns Celsius equivalent of a Fahrenheit temperature.
C =(5/9)*(F-32)
Use a function Fahrenheit which returns Fahrenheit equivalent of a Celsius temperature.
F =(9/5)*C +32
Use the functions above to write a program which converts from Celsius to Fahrenheit
or from Fahrenheit to Celsius and displays the result. Your program should repeat as long
as the user enters 1 or 2 as the choice.

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!