Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a Temperature class that internally stores a temperature in degrees Kelvi

ID: 3656198 • Letter: C

Question

Create a Temperature class that internally stores a temperature in degrees Kelvin. Create functions named setTempKelvin, setTempFahrenheit, and setTempCelsius that take an input temperature in the specified temperature scale, convert the temperature to Kelvin, and store that temperature in the class member variable. Also, create functions that return the stored temperature in degrees Kelvin, Fahrenheit, or Celsius. Write a main function to test your class. Use the equations shown next to convert between the three temperature scales. Kelvin = Celsius + 273.15 Celsius = (5.0/9) times (Fahrenheit - 32)

Explanation / Answer

#include #include using namespace std; void programOverview (); char getScale (); float getDegree (); float convertFtoC (float); float convertCtoF (float); void getResults (); int main () { programOverview (); cout