Note: This question was answered but its very comfuseing, in C++ language please
ID: 3765471 • Letter: N
Question
Note: This question was answered but its very comfuseing, in C++ language please help
Create a Temperature class that internally stores a temperature in degrees Kelvin. Create functions named setTempKelvin, setTempFarenheit, and setTemCelcius that an input in the specified scale, converts the temperature to Kelvin, and store the temperature in the class member variable. Also create functions that return and stored temperature in Kelvin, Fahrenheit, or Celsius. Write the main functions to test your class. Use the equations:
Kelvin = Celsius + 273.15
Celsius = (5.0/9) X (Fahrenheit -32.0)
Explanation / Answer
int main( int argc, char* argv[] )
{
{
converter con;
float k;
while( true )
{
cout << "Enter the temperature in Kelvin to convert: ";
cin >> k;
con.convert( k );
system( "pause" );
system( "cls" );
}
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.