Write a Temperature class that represents temperatures in degrees in both Celsius and Fahrenheit. Use a floating-point number for the temperature and a character for the scale: either 'C' for Celsius or 'F' for Fahrenheit. The class implementation contains:

Respuesta :

The formula used to convert the Fehrenheit to degree Celcius is given as

F = 1.8C + 32

What is temperature?

The term used for the measurement of the degree of hotness or coldness of any object is called as temperature.

This represents the temperature of F degrees Fahrenheit converted to degrees Celsius.

Remember that in order to change temperature we need to use the following formula:  from Fahrenheit to Celsius: first, subtract 32, then multiply by 100/180

To know more about temperature follow

https://brainly.com/question/24746268

#SPJ1

ACCESS MORE