i guess its this way
-------------------------------
we take sum, average --> for average...
and as the markscheme says...min and max...too,,,,to compare the values and swap them accordingly..
we limit count to 24 as there are 24 hours in a day..and they want the readings hourly
the markscheme sets the min too 100 and max to 0....because a normal temperature reading for a day (0-50) will fall atlesast in 1 range
============================
sum = 0
min = 100
max = 0
count = 1 (initially)
let the temp be x
for (count=1;count<=24;count +1)
{
input x
F= (x*1.8) + 32
sum = sum + F
if F <min, min = F
if F >max, max = F
(note theres no else)
increment count
}
average = sum/24
print average, max, min