Celsius or Fahrenheit (Weather App)

A line UNITS F (or UNITS C) switches units for the lines after it. In F, show °F = round(c × 9 / 5 + 32) and wind in mph = kph / 1.609 with one decimal (12.4 mph), using the same rounding.

Input: As before, plus UNITS lines.

Output: As before.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Convert first, round last.

More Weather App practice