A medical clinic has a set of refrigerators used for storing sensitive vaccines. If a refrigerator malfunctions, Dr. Sophia needs to be immediately alerted.
SET fridgeTemperatures TO [5, 4, 1, 9, 8, 10, 3]
An example output for the dataset above is shown:
Fridge 2 is out of tolerance: 1
Fridge 3 is out of tolerance: 9
Fridge 5 is out of tolerance: 10
Write an algorithm to inform Dr. Sophia of any faulty refrigerators. 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.