Question 7(a)(ii) 2025 · May-June · Paper 23 · 1 mark
Reveal official mark-scheme answer
Official answer for Question 7
Part (a)
(ii)
Question 1
Show text version of question
Question 7
Part (a)
(ii)
Question 7
A program is being developed to implement a customer loyalty scheme for a coffee shop.
The programmer has decided that the following data items need to be stored for each customer:
Data item Description
customer ID a unique six-digit string
loyalty points an integer value that depends on how often the customer visits the coffee shop
last visit date the date the customer last visited the coffee shop
The programmer has defined a program module:
Module Description
- called with two parameters:
- change the loyalty points:
1. loyalty points of type INTEGER 2. last visit date of type DATE
increase by four if the last visit date and the current date are in the UpdateVisit() same month otherwise increase by one
- change the last visit date to the current date
- the changed values must be available to the code that follows the call
to UpdateVisit()
(ii)
The programmer decides to amend the UpdateVisit() module so that loyalty points
are further increased if the customer visits the coffee shop the same day of the week as their last visit.
Write the pseudocode for this condition.
...........................................................................................................................................
.....................................................................................................................................
Question 16
, ,
Why this question appears here
71% assigned-topic match · Programming › Constructs
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9618_s25_qp_23.pdf
