Virtual University of Pakistan Study forum !
Please read the following instructions carefully before submitting assignment. It should be clear that your assignment will not get any credit if:
Note: You have to upload only .cpp file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks. For example, if you submit code in .doc (Word document) or .txt files or .exe file, no reward will be given in any case.
The objective of this assignment is to provide hands on experience of:
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.
The program should prompt the user to enter his/her option.
The program should respond in the following ways using switch statement:
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
Sample output of program:
When user enters option C or c then it convert into Fahrenheit and Kelvin
When user enters option F or f then it convert into Celsius and Kelvin
When user enters option K or k then it convert into Celsius and Fahrenheit
Use the formulas given below for conversion.
K = °C + 273.15
°F = °C × 9⁄5 + 32
K = (°F + 459.67) × 5⁄9
Correct Solution file ...