Using the Temperature class from Exercise 7, write a program that inputs temperature in degrees Celsius and outputs the temperature in equivalent degrees Fahrenheit.

Exercise 7:

Define a new class named Temperature. The class has two accessors—to-Fahrenheit and toCelsius—that return the temperature in the specified unit and two mutators—setFahrenheit and setCelsius—that assign the temperature in the specified unit. Maintain the temperature internally in degrees Fahrenheit. Using this class, write a program that inputs temperature in degrees Fahrenheit and outputs the temperature in equivalent degrees Celsius.