Question 1
OCR Computer Science June 2025 Algorithms and problem solving (H046-02)AS7 marks
On the specification
- (a)
- 2.1 Elements of computational thinking
- (b)
- 2.2 Problem solving and programming
Question text
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. [3]