Temperature Converter

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:
C * 9/5 +32 = F
(F-32) * 5/9 = C
4. Also display a description for the temperature according to the following table:
C F Description
100 212 Water boils
40 104 Hot Bath
37 98.6 Body temperature
30 86 Beach weather
21 70 Room temperature
10 50 Cool day
0 32 Freezing point
-18 0 Cold Day
-40 -40 Extremely Cold


Assume that the table is giving you temperature ranges. Starting from the top. If the temperature is 212 F or higher, then display “Water boils”. If higher than 104, but below 212 F, then display “Hot Bath”, and so on.

5. Ask the user if they want to exit the program. If not, continue the program from 1.
http://www.cplusplus.com/forum/beginner/174349/

Don't create multiple threads about the same problem.
Topic archived. No new replies allowed.