A geothermal extraction system monitors its drill-head pressure, measured in kilopascals (kPa).
An operator can trigger a manual adjustment:
For safety reasons, the pressure must always be maintained within the safe operational range of 100 kPa to 1200 kPa inclusive.
The function adjustPressure():
changeType (which is either "BOOST" or "VENT") and the parameter currentPressureComplete the function adjustPressure():
function adjustPressure(changeType, currentPressure)
41 exam-style questions on OCR GCSE Computer Science Designing, creating and refining algorithms. Each one has a worked solution and a mark scheme showing where the marks go.