7Medium
0/4

An automated control system regulates the environmental conditions inside a commercial hydroponic greenhouse.

The acceptable conditions for the greenhouse are as follows:

  • Soil temperature (soilTemp)
  • Air temperature (airTemp) must be a maximum of soilTemp + 15°C (i.e. at most 15°C warmer than the soil temperature)
  • Carbon dioxide level (co2Level) must be a maximum of 1200 ppm

Both 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.

[4]

Constructs Questions

Practise Edexcel GCSE Computer Science Constructs with exam-style questions for GCSE Computer Science. 61 questions covering Structural components of programs and Writing programs with control constructs, matched to the Edexcel GCSE Computer Science (1CP2) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

PreviousNext

Constructs Questions

  1. GCSE
  2. /Computer Science
  3. /Constructs