Write a C++ program that outputs a table having four columns of temperature values, ordered as follow: Celsius, Fahrenheit, Kelvin and Rankine. Use a while loop Let the Celsius temperature vary from...

Write a C++ program that outputs a table having four columns of temperature values, ordered as follow: Celsius, Fahrenheit, Kelvin and Rankine. Use a while loop Let the Celsius temperature vary from 0.0 to 100.0 in steps of 5 °C. Convert each of these values to the other scales using the formulas given in Lab-1 (reproduced here for your convenience): 1) KELVIN CELSIUS FAHRENHEIT RAN KINE 31SOLS 2672 273 MELTS 32 a. Fahrenheit (F): where F-1.8C+32 b. Kelvin (K): where K-C+273.15 c. Rankine (R): where R-1.8K -2734H. -459.4 2) Using files - Writing a table to a file: Modify the program written in Question-3, such that outputs the table to a file (temperatures.txt) using an output file stream ofstream.

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here