A weather station logs one temperature a day, in degrees Celsius. You will add them up, count the hot days and find the average, with a loop and no ready-made sum(), just as the pseudocode of the lesson does.
Your tasks.
total.hot_days when a temperature is above 30.0.average to the total divided by the number of days, rounded to 2 decimal places.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…