Worked solution from the Algorithm Design and Problem-solving Paper 2 Problem-solving and Programming booklet, Part 1 of 2.
Write three modules, each with its name and a short use. For example:
SelectCharity() allows the user to choose a charity. [1]
SpecifyAmountAndType() lets the user enter an amount and choose a single or regular payment. [1]
MakePayment() (or ValidatePayment()) takes the payment for the charity, after the payment details are checked. [1]
Other correct modules include AddBankAccountDetails() and AddDonorDetails().
▶ Whole paper
Video solution of the whole paper · by Zafar Ali Khan (ZAK). 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.