9618/21/O/N/22 question 2: worked solution (October/November 2022, paper 21)

Show as plain text

Cambridge AS Level Computer Science 9618 · 9.1 Computational Thinking Skills Worked solution from the Algorithm Design and Problem-solving Paper 2 Problem-solving and Programming booklet, Part 1 of 2. Q4 9618/21/O/N/22 original Q2 Structured · 5 marks Worked solution (a) Abstraction means keeping only the data that is needed for the task and leaving out the data that is not needed (filtering out unnecessary detail). [1] Write four items that must be stored for each hire, for example: Car registration (or car ID or car type) and customer name (or customer ID, address or licence details) [1] Start date of the hire and return date (or number of days) [1] Another correct item is the cost of the hire . Any four different items from these lists score, two items per mark. (b) Write two operations, for example: Input customer details (or car details or payment details) [1] Create the hire (or return the car, change the car status, cancel the hire, or calculate the hire cost / process the payment) [1] KEY IDEA Abstraction keeps only the details needed for the job; for a hire system that means car, customer, dates and cost. TOTAL 5 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Pseudocode Pro. Tap the picture to open it on YouTube.