Temps.txt holds 15, 22, 9, 30 and 18, one on each line. Count ← 0, then the file is opened FOR READ and a WHILE NOT EOF loop does READFILE "Temps.txt", Line and adds 1 to Count IF STR_TO_NUM(Line) > 16. What is Count at the end?
- 15 is not greater than 16, so Count stays 0. 22 is greater, so Count = 1.
- 9 is not greater, so Count stays 1. 30 is greater, so Count = 2.
- 18 is greater, so Count = 3. EOF is now TRUE, so the loop ends and the file is closed.
Answer: Count = 3.