Constructs

EasyMediumHard
123456789101112131415161718192021222324252627282930
Question 8
Medium

An automated hydroponics system regulates the acidity of a nutrient reservoir using a microprocessor control unit as shown in the schematic below.

pH Control Schematic

An algorithm is required to control the dosing pumps. The system must read two inputs: the target pH level target_pH and the current measured pH level measured_pH. The algorithm must determine and output:

  • "Dispense Acid" if measured_pH is strictly greater than target_pH + 0.5
  • "Dispense Alkali" if measured_pH is strictly less than target_pH - 0.5
  • "No action" if measured_pH is within the tolerance range (otherwise)

Draw a flowchart to show this algorithm.

Standard Flowchart Guide:

  • Terminator (Rounded rectangle) for Start/End
  • Input/Output (Parallelogram) for reading values or writing results
  • Decision (Diamond) for conditional paths
  • Process (Rectangle) for assignments or calculations
[6]

Constructs Questions

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