Question: Write in c++ Create a Temperature class that internally stores a temperature in degrees Kelvin. However, create functions named setTempKelvin, setTempFahrenheit, and setTempCelsius that takes
Write in c++

Create a Temperature class that internally stores a temperature in degrees Kelvin. However, create functions named setTempKelvin, setTempFahrenheit, and setTempCelsius that takes an input temperature in the specified temperature scale, converts the temperature to Kelvin, and stores 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 below to convert between the three temperature scales. Kelvin = Celsius + 273.15 Celsius = (5/9) times (Fahrenheit - 32)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
