Question 1 Report
A scoreboard program is used during a wheelchair basketball tournament. The referee enters points through a keypad. The main program sends the new score to a large display and saves a copy to a match log file after every turn. If electricity fails, staff can read the file and restore the latest score.
(a) State the input device used by the referee. [1]
(b) Explain why writing to the log file after every turn is better than saving only at the end. [2]
Fig. 1 shows the control panel of an automated greenhouse. A grower uses the displayed controls to enter a target temperature and save it in a configuration file. On restart, the skeleton program reads the saved value and sends it to the heater controller. The grower must be warned if the entered value is outside the safe range of 10 to 35 degrees C.
(a) When the Save command is selected, explain one check the program should make on the entered temperature. [2]
(b) State one output device that could give the warning. [1]
(c) Explain why the configuration file should be closed after writing. [1]
Scoreboard
Greenhouse controller
Everything you need to excel in your exams