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
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 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): a. Fahrenheit (F): where F=1.8C+32 b. Kelvin (K): where K=C+273.15 c. Rankine (R): where R-1.8K KELVIN CELSIUS FAHRENHEIT RAN KINE 3735f 100-2 273 0 ICE WELTS 32 492- 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 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): a. Fahrenheit (F): where F=1.8C+32 b. Kelvin (K): where K-C+273.15 c. Rankine (R): where R-1.8K KELVIN CELSIUS FAHRENHEIT RAN KINE 3735f 100-2 273 0 ICE WELTS 32 492-
Step by Step Solution
3.56 Rating (156 Votes )
There are 3 Steps involved in it
C program that displays a table with four columns to convert temperatures from 0 to 100 in ... View full answer
Get step-by-step solutions from verified subject matter experts
