Question: 3) Write a C++ program that outputs a table having four columns of temperature values, ordered as follow: Celsius, Fahrenheit, Kelvin and Rankine. Use a
3) 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 KELVIN CELSIUS FAHRENHEIT RANKINE too wu zrt 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): 2 492 11 Fahrenheit (F): where F= 1.8C+32 Kelvin (K): where K-C+273.15 Rankine (R): where R=1.8K a. b. 4594 c. 4) Using files-Writing a table to a file: Modify the program written in Question-3, such that it outputs the table to a file (temperatures.txt) using an output file stream ofstream
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
