Problem Statement:

You are required to write a simple “Temperature Conversion Calculator” using C++ language. The objective of this program should be to convert one temperature unit to other temperature units. These temperature units are Fahrenheit, Celsius and Kelvin etc.

Detailed Description:

The program should prompt the user to enter his/her option.

The program should respond in the following ways using switch statement:

1. If user enters option ‘F’ or ‘f’ then it should prompt the user to enter temperature in Fahrenheit. It should then convert it into Celsius and Kelvin and display the values on the screen.

2. If user enters option ‘C’ or ‘c’ then it should prompt the user to enter temperature in Celsius. It should then convert it into Fahrenheit and Kelvin and display the values on the screen.

3. If user enters option ‘K’ or ‘k’ then it should prompt the user to enter temperature in Kelvin. It should then convert it into Celsius and Fahrenheit and display the values on the screen.

After performing conversion operation, it should ask the user to continue or not. If user enters ‘n’ then it will quit the program otherwise it will perform the operation again.

Hint:

Use the formulas given below for conversion.
K = °C + 273.15
°F = °C × 9⁄5 + 32
K = (°F + 459.67) × 5⁄9


Sample output of program:
Name:  1.png
Views: 1392
Size:  7.8 KB

---------------------------------------
When user enters option C or c then it convert into Fahrenheit and Kelvin
Name:  2.png
Views: 1360
Size:  9.4 KB

----------------------------------------
When user enters option F or f then it convert into Celsius and Kelvin
Name:  3.png
Views: 1327
Size:  11.9 KB

------------------------------------------
When user enters option K or k then it convert into Celsius and Fahrenheit
Name:  4.png
Views: 1292
Size:  15.1 KB