Professional Documents
Culture Documents
Untitled
Untitled
Untitled
b) Error 1 - Line 2
Correction – TooCold ←0
Error 2 – Line 8
Error 3 – Line 15
Error 4 – Line 17
c) We would make a new assignment and assign 0 as the value to it, this would be the counter for
seeing if the temperature is in the range. We could then use an IF Statement/range check to see if
the input is within the range of -18 and -25 and then use counting to keep track of every time its
within the range.
Number ← Number + 1
Q3.
1 2
2 5
3 1
4 4