Constructs

EasyMediumHard
123456789101112131415161718192021222324252627282930
Question 16
Medium

An automated greenhouse climate system regulates irrigation and misting using a water pump (waterPump).

The system must turn the water pump 'ON' if either of the following safety conditions is met:

  • The soil moisture level (soilMoisture) falls below its dynamic target threshold, which is defined as 0.3 * solarRad + 12 (where solarRad represents solar radiation in W/m2\text{W/m}^2W/m2).
  • The ambient air temperature (airTemp) exceeds 35°C.

Otherwise, the water pump must be turned 'OFF'.

Write an algorithm in pseudocode, using the variables soilMoisture, solarRad, airTemp, and waterPump, that regulates this greenhouse system.

[4]

Constructs Questions

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