Designing, creating and refining algorithms
29
0/6

A local leisure centre helper needs an algorithm designed to determine if a visitor is eligible for a discounted 'Off-Peak Pass'.

The algorithm must:

  • Input the visitor's age and the current hour of the day (in 24-hour format, e.g. 14 for 2 PM).
  • Decide if the visitor is eligible for the discount: a visitor qualifies if they are aged 65 or over, or if the current hour is between 9 and 15 inclusive (9 AM to 3 PM).
  • Output "Discount Approved" if they qualify, or "Standard Rate" if they do not.

Design the algorithm using a flowchart. Use standard flowchart symbols (Terminator, Process, Decision, Input/Output).

[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