Worked solution from the Software Development Paper 2 Problem-solving and Programming booklet, Part 2 of 3.
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]
Choosing only the details that matter and ignoring the rest is this skill:
Write: abstraction [1]
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]
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]
▶ Whole paper
Video solution of the whole paper · by Papersdock. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.