Question 4(a) 2022 · October-November · Paper 22 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (a)
Question 6
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
Question 4
Question 5
Show text version of question
Question 4
Part (a)
Question 4
The program flowchart represents a simple algorithm.
START
INPUT UserID
Set Average to GetAverage(UserID)
Set Total to 0
Set Index to 4
Add 1 to Index
YES Is Index < 7 ?
NO Set Last to SameMonth[Index]
Is Average NO > Last ? Add Last to Total
YES
Add Average to Total
Update(UserID, Total)
END
Question 9
Part (a)
Write the equivalent pseudocode for the algorithm represented by the flowchart.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................
Why this question appears here
92% assigned-topic match · Algorithm design and problem-solving › Algorithms
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_w22_qp_22.pdf
