Computer Science (AS & A Level) · Oct / Nov 2021 · Paper 21 · Question 4
9618
As printed in the paper
The question as text
A program controls the heating system in a sports hall. Part of the program involves reading a value from a sensor. The sensor produces a numeric value that represents the temperature. The value is an integer, which should be in the range 0 to 40 inclusive. A program function has been written to validate the values from the sensor.
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
4(a)[4]
4(b)[3]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

