Fundamental Types

Smart Thermostat

Levels

You’re developing a consumer smart thermostat. As is best practice, you internally store temperature in celsius. However, you plan to sell the thermostat in the US market, which requires you to be able to display the temperature in Fahrenheit as well.

Write a celsius to Fahrenheit converter

The formula for calculating degrees Fahrenheit from celsius is below. Beware the difference between dividing integers vs dividing doubles.

...
Experiments are available to members.
Become a Member