May 2025 OCR: AS Level Computer Science
H046/02 Algorithms and Problem Solving – Merged
Question Paper & Mark Scheme
2
© OCR 2025
1 A gym owner would like a program for members to be able to book gym cl
...
May 2025 OCR: AS Level Computer Science
H046/02 Algorithms and Problem Solving – Merged
Question Paper & Mark Scheme
2
© OCR 2025
1 A gym owner would like a program for members to be able to book gym classes. Each class can
have a maximum of 20 members.
Members will enter their membership ID and then the date and time of the class they want to
attend. Validation rules will check these details meet set rules. If they do not meet the validation
rules then an error message will be displayed. A confirmation message will be displayed if the
class is not full. A bleeping sound will play if the class is full.
(a) Identify two inputs and two outputs for the program.
Input 1 ..............................................................................................................................................
Input 2 ..............................................................................................................................................
Output 1 ...........................................................................................................................................
Output 2 ...........................................................................................................................................
[4]
(b) The programmer is identifying any possible reusable components in the program design.
Explain why the programmer should create reusable program components.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
. .....................................................................................................
[Show More]