Designing, creating and refining algorithms
33
0/6

An automated bakery monitoring system needs to track the temperature of 8 commercial ovens. Write an algorithm in pseudocode or a high-level programming language that implements the following design requirements:

  • Initialize a counter for overheated ovens to 0.
  • Loop 8 times (representing ovens 1 to 8).
  • In each iteration, prompt the user to input the temperature (as an integer in °C) for the current oven.
  • If the temperature is strictly greater than 220°C, output 'Oven [number] is OVERHEATED' (where [number] is the current oven number) and add 1 to the overheated ovens counter.
  • Otherwise, output 'Oven [number] is within normal range'.
  • After the loop finishes, output the total number of overheated ovens with an appropriate, descriptive message.
[6]

Designing, creating and refining algorithms Questions

Practise OCR GCSE Computer Science Designing, creating and refining algorithms with exam-style questions for GCSE Computer Science. 50 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 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.

PreviousNext

Designing, creating and refining algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Designing, creating and refining algorithms