ProblemYou have a temperature reading measured in Celsius and need to convert it to Fahrenheit. Solutionpublic static double CtoF(double celsius) { return (((0.9/0.5) * celsius) + 32); } DiscussionThis recipe makes use of the following Celsius-to-Fahrenheit temperature conversion equation: TempCelsius = (5 / 9) * (TempFahrenheit - 32) The Fahrenheit temperature scale is widely used in the United States. However, much of the rest of the world uses the Celsius temperature scale. |