Question: write c++ program using switch loop, while loop, do-while loop, if else. Write a temperature converter that works in the following way: 1. Ask the

write c++ program using switch loop, while loop, do-while loop, if else. write c++ program using switch loop, while loop, do-while loop, if else.

Write a temperature converter that works in the following way: 1. Ask the user to enter a number (of degrees) 2. Ask the user to enter the units of that number (that is, ' C ' for Celsius or ' F ' for Fahrenheit) 3. Display the temperature in both Celsius and Fahrenheit units (after calculating the conversion). The relevant formulas are: celsius=95(fahrenheit32.0) fahrenheit=59celsius+32.0 4. Also display a description for the temperature according to the following table: Assume that the table is giving you temperature ranges (despite unrealistic). Starting from the top. If the temperature is 212F or higher, then display "Water boils". If higher than 104 , but below 212F, then display "Hot Bath", and so ans. 5. Ask the user if she wants to exit the program. If not, continue the program from 1

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!