An environmental monitoring station tracks water salinity levels (in parts per thousand, ppt) across several estuarine research zones to protect a sensitive fish species. If a zone's salinity falls outside the safe range, marine biologists must be immediately alerted.
SET zoneSalinity TO [15, 12, 9, 21, 19, 22, 11]
An example output for the dataset above is shown:
Zone 2 is critical: 9 ppt
Zone 3 is critical: 21 ppt
Zone 5 is critical: 22 ppt
Write an algorithm to inform marine biologists of any critical zones. Use pseudocode or a programming language with which you are familiar.
50 exam-style questions on Edexcel GCSE Computer Science Constructs, covering Structural components of programs and Writing programs with control constructs. Each one has a worked solution and a mark scheme showing where the marks go.