The leisure centre uses a control system to regulate the water temperature in the pool and the air temperature and humidity in the pool hall - Edexcel - GCSE Computer Science - Question 6 - 2021 - Paper 1
Question 6
The leisure centre uses a control system to regulate the water temperature in the pool and the air temperature and humidity in the pool hall.
These are the acceptab... show full transcript
Worked Solution & Example Answer:The leisure centre uses a control system to regulate the water temperature in the pool and the air temperature and humidity in the pool hall - Edexcel - GCSE Computer Science - Question 6 - 2021 - Paper 1
Step 1
(a) Write an algorithm in pseudocode, using variables wTemp, aTemp and humidity, for achieving acceptable conditions in the pool hall for a competition.
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
IF (aTemp > wTemp + 2) OR (humidity > 70) THEN
SET AC TO ON
ELSE
SET AC TO OFF
END IF
Step 2
(b) Construct a Boolean logic expression using wTemp, aTemp and humidity, where TRUE = within acceptable range.
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
wTemp >= 25 AND wTemp <= 28 AND aTemp >= (wTemp + 2) AND humidity <= 70