9618/22/O/N/24 question 7: worked solution (October/November 2024, paper 22)

Show as plain text

Cambridge AS Level Computer Science 9618 · 12.2 Program Design Worked solution from the Software Development Paper 2 Problem-solving and Programming booklet, Part 2 of 3. Q27 9618/22/O/N/24 original Q7 Structured · 10 marks Worked solution (a) Write any three items with a reason: Email address – needed to send the email [1] Name – to personalise the message [1] Date of last visit – to pick out customers who have not visited in three months (or customer ID to find the other details) [1] (b) Choosing only the details that matter and ignoring the rest is this skill: Write: abstraction [1] (c) Any three items defined in the design stage: Data structures / validation rules / data dictionary [1] User interface or the format of the email [1] Test plan / test data, or a data-flow diagram or state-transition diagram, or the programming language to use [1] (d) Draw the chart like this: Three boxes: Check at the top, with Init and Reset below it, each joined to Check by a line [1] Init: a Boolean return value going up. Reset: the string parameter going down and an integer return value going up [1] A curved (iteration) arrow across the two lines under Check, because it repeats Init then Reset [1] KEY IDEA Abstraction means keeping only the details needed and leaving out the rest. TOTAL 10 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Papersdock. Tap the picture to open it on YouTube.