Skip to content

Course home

Defensive design

Defensive design

EasyMedium
12345678910
Question 6

An automated greenhouse ventilation system monitors the carbon dioxide (CO2CO_2CO2​) concentration. The concentration, measured in parts per million (ppm), must be input and validated. The entered value must be between 400.0 and 1200.0 inclusive.

Write an algorithm to:

  • take the CO2 CO_2\,CO2​ concentration as input
  • output "ACCEPTED" or "REJECTED" depending on whether the input is valid or invalid.

You must use either:

  • OCR Exam Reference Language, or
  • A high-level programming language that you have studied.
[3]
Markscheme

Defensive design Questions

  1. GCSE
  2. /Computer Science
  3. /Defensive design

14 exam-style questions on OCR GCSE Computer Science Defensive design. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank