Question 6
Edexcel Computer Science June 2021 Paper 2GCSE7 marks
On the specification
- (a)
- 1.2 Algorithms
- (b)
- 1.3 Truth tables6.5 Operators
Question text
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 acceptable conditions for swimming competitions. • water temperature (wTemp) 28°C maximum and 25°C minimum • air temperature (aTemp) wTemp + 2°C • humidity 70% maximum Air temperature and humidity in the pool hall can be reduced by switching on the air conditioning (AC). (a) Write an algorithm in pseudocode, using variables wTemp, aTemp and humidity, for achieving acceptable conditions in the pool hall for a competition. (4) (b) The pool water temperature is adjusted using a pool heater. Construct a Boolean logic expression using wTemp, aTemp and humidity, where TRUE = within acceptable range. The expression should set the pool heater to off and the air conditioner to on. (3) (Total for Question 6 = 7 marks)