Write a Temperature class tha represents temperatures in degrees in both Celsius and Fahrenheit. Use a floating-point number for the temperature and a charcter for the sclae: eather 'C' for Celsius or 'F' for Fahrenheit. he class should have:
- four constructors: one for the number of degrees, one for the scale, one for the both degrees and scale, and a defult construstor. For each of these construcores assume zero degrees if no balue is specified and Celsius if no scale is given.
two accessor methods: one toreturn the temperature in degrees Celsius, the other to return it in degrees Fahrenhit.
Three comparsion methods: one to test whether two temperatures are equal, one to test whether one temperature is grater than another , and one to test whether one temperature is less than another.
Three set methods: one to set the number of degrees, one to set the scale and one to set both.
Write a driver program that tsts all the methods. Be sureto invoke each of the constructors, o include at least one true and one false case for each comparison method, and to testa leastthe following three temperaure pairs for equality: 0.0 degree C and 32.0 degres F, -40.0 degrees C and -40.0 degrees F and 100.0 degrees C and 212.0 degrees F.