An automated control system regulates the environmental conditions inside a commercial hydroponic greenhouse.
The acceptable conditions for the greenhouse are as follows:
soilTemp)airTemp) must be a maximum of soilTemp + 15°C (i.e. at most 15°C warmer than the soil temperature)co2Level) must be a maximum of 1200 ppmBoth the air temperature and carbon dioxide level can be reduced by opening the ventilation shutter (ventShutter).
Write an algorithm in pseudocode, using the variables soilTemp, airTemp, co2Level, and ventShutter, that regulates the greenhouse conditions.
50 exam-style questions on Edexcel GCSE Computer Science Constructs, covering Structural components of programs and Writing programs with control constructs. Each one has a worked solution and a mark scheme showing where the marks go.