Feels like and alerts (Weather App)

Make it useful. When the temperature is at most 10 °C and the wind is above 4.8 km/h, add , feels like <temp using the wind-chill formula 13.12 + 0.6215·T − 11.37·V^0.16 + 0.3965·T·V^0.16 (T in °C, V in km/h, then converted to the chosen unit). Then add alerts in brackets: take an umbrella if rainchance 70, wear sunscreen if uv ≥ 8, strong wind if wind ≥ 60 km/h, comma separated: [take an umbrella, strong wind].

Input: As before.

Output: As before.

Difficulty: Medium. 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

  • Optional fields may be missing: treat them as 0.

More Weather App practice