The formula for converting a temperature from Fahrenheit to Celsius is: C = 5/9(F – 32) where F is the temperature in Fahrenheit and C is the temperature in Celsius. Write a class called TemperatureConversion that includes methods that: • Convert Celsius to Fahrenheit. The Celsius temperature is passed as a parameter and it returns the corresponding Fahrenheit temperature. • Convert Fahrenheit to Celsius. The Fahrenheit temperature is passed as a parameter and it returns the corresponding Celsius temperature. Demonstrate the methods by using loops to display the Fahrenheit temperatures 32 through 212 and their Celsius equivalents and the Celsius temperatures between 0 and 100 and their Fahrenheit equivalents. in c#
The formula for converting a temperature from Fahrenheit to Celsius is: C = 5/9(F – 32) where F is the temperature in Fahrenheit and C is the temperature in Celsius. Write a class called TemperatureConversion that includes methods that: • Convert Celsius to Fahrenheit. The Celsius temperature is passed as a parameter and it returns the corresponding Fahrenheit temperature. • Convert Fahrenheit to Celsius. The Fahrenheit temperature is passed as a parameter and it returns the corresponding Celsius temperature. Demonstrate the methods by using loops to display the Fahrenheit temperatures 32 through 212 and their Celsius equivalents and the Celsius temperatures between 0 and 100 and their Fahrenheit equivalents. in c#
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images