Question: In C# Please help,confused Test 2 Same temperature public static bool Test2(double fahrenheit, double celsius) Given two doubles, fahrenheit and celsius, determine if they are
In C# Please help,confused
Test 2 Same temperature
public static bool Test2(double fahrenheit, double celsius)
Given two doubles, fahrenheit and celsius, determine if they are equal temperatures. Before comparing the temperatures, convert them to the same units.
The formula to convert Fahrenheit to Celsius is: Celsius = (fahrenheit - 32.0) * (5.0/9.0)
The formula to convert Celsius to Fahrenheit to Celsius is: Fahrenheit = (celsius * 9.0 / 5.0) + 32.0
You only need to use one of the formulas not both.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
