The airport has touchless handwashing stations - Edexcel - GCSE Computer Science - Question 3 - 2020 - Paper 1
Question 3
The airport has touchless handwashing stations. The stations automatically dispense soap, water and warm air for drying. To conserve water, the stations must ensure ... show full transcript
Worked Solution & Example Answer:The airport has touchless handwashing stations - Edexcel - GCSE Computer Science - Question 3 - 2020 - Paper 1
Step 1
3a) Identify the sensor for water
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
SENSOR_W(1)
Step 2
3b) Describe the limitation of the algorithm
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
The algorithm would allow for two operations to be carried out at the same time.
Step 3
3c) Correct the control statement for soap
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
IF (soapRequest = True) THEN
SET soapStatus TO "ON"
ELSE
SET soapStatus TO "OFF"
END IF
Step 4
3d) Explain the use of AND and NOT in logical operations
98%
120 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
One mark for exclusive use of AND (1 mark)
One mark for correct placement of NOT (1 mark)