A high-altitude research balloon has several helium pressure chambers monitored by automated sensors. If a chamber's pressure falls outside the safe working range, the flight control system must immediately log a critical warning.
SET chamberPressures TO [100, 85, 120, 95, 70, 115, 130, 90]
An example output for the dataset above is shown:
Chamber 2 is critical: 120 kPa
Chamber 4 is critical: 70 kPa
Chamber 6 is critical: 130 kPa
Write an algorithm to display critical warnings for any faulty chambers. Use pseudocode or a programming language with which you are familiar.
Practise Edexcel GCSE Computer Science Constructs with exam-style questions for GCSE Computer Science. 61 questions covering Structural components of programs and Writing programs with control constructs, matched to the Edexcel GCSE Computer Science (1CP2) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.