Past-paper question · 2022 October-November · Paper 21 · Q1(c)

Question 1(c) 2022 · October-November · Paper 21 · 6 marks

Original past-paper question for 1(C)
Original past-paper question for 1(C)
Original past-paper question for 1(C)
Reveal official mark-scheme answer Official mark-scheme answer for 1(C)

Official answer for Question 1

Part (c)

✓
One mark per mark point, max six

Question 6

✓
MP1
✓
loop through all the members
✓
MP2
✓
any suitable correct comparison of age
✓
MP3
✓
if 18 Change membership type to adult
✓
MP4
✓
if 50 Change membership type to senior
✓
MP5
✓
if 80 Change membership type to golden
✓
MP6
✓
check if team member
✓
MP7
✓
no store appropriate full fee
✓
MP8
✓
yes store 90% of appropriate full fee
✓
Example
✓
FOR Member 1 TO Total
✓
CASE Age[Member] OF
✓
18 : Type[Member] "Adult"
✓
50 : Type[Member] "Senior"
✓
80 : Type[Member] "Golden"
✓
ENDCASE
✓
IF Team[Member]
✓
THEN
✓
CASE Type[Member] OF
✓
JuniorFee * 0.9
✓
"Junior" : Fee[Member]
✓
AdultFee * 0.9
✓
"Adult" : Fee[Member]
✓
SeniorFee * 0.9
✓
"Senior" : Fee[Member]
✓
ENDCASE
✓
ELSE
✓
CASE Type[Member] OF
✓
"Junior" : Fee[Member]
✓
JuniorFee
✓
"Adult" : Fee[Member]
✓
AdultFee
✓
"Senior" : Fee[Member]
✓
SeniorFee
✓
"Golden" : Fee[Member]
✓
GoldenFee
✓
ENDCASE
✓
ENDIF
✓
NEXT Member
✓
Cambridge IGCSE – Mark Scheme
✓
0478/21
✓
October/November 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_w22_ms_21.pdf →

Show text version of question

Question 1

Part (c)

Question 1

All variables, constants and other identifiers must have meaningful names.

Part (c)

Write an algorithm for the part of Task 3 that checks the age of all the members, and whether

they are in a team, then updates the type of membership and the annual fee if required.

Use pseudocode, programming statements or a flowchart.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

Question 5

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

[6]

Question 6

Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

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 0478_w22_qp_21.pdf

Keep practising this topic