Cambridge AS Level Computer Science 9618 · 12.2 Program Design

Q27 · 9618/22/O/N/24 Q7

Worked solution from the Software Development Paper 2 Problem-solving and Programming booklet, Part 2 of 3.

Q279618/22/O/N/24original Q7Structured · 10 marks
Question 7 from 9618/22/O/N/24

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 IDEAAbstraction means keeping only the details needed and leaving out the rest.
TOTAL 10 marks

Official mark scheme

Mark scheme for 9618/22/O/N/24 question 7
VIDEO
▶ 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.