A daily forecast (Weather App)
A line may instead be a forecast: {"city", "hourly": [{"time": "YYYY-MM-DDTHH", "tempc", "condition"}, …]}. Print <city forecast: then, per day in order, <day min <n max <n avg <x.x <condition: rounded min and max, the average with one decimal, and the most frequent condition (ties: the one that appears first). Units apply. Malformed hours print error: bad data.
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
- Group hours by the first 10 characters of time.