Question 2(a) 2023 · October-November · Paper 21 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (a)
Question 5
Show text version of question
Question 2
Part (a)
An algorithm is expressed as follows:
- input 100 numbers, one at a time
- keep a total of all numbers input that have a value between 30 and 70 inclusive and
output this total after the last number has been input.
Outline, using stepwise refinement, the five steps for this algorithm which could be used to produce pseudocode.
Do not use pseudocode statements in your answer.
Step 1 .......................................................................................................................................
...................................................................................................................................................
Step 2 .......................................................................................................................................
...................................................................................................................................................
Step 3 .......................................................................................................................................
...................................................................................................................................................
Step 4 .......................................................................................................................................
...................................................................................................................................................
Step 5 .......................................................................................................................................
...................................................................................................................................................
Why this question appears here
82% 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_w23_qp_21.pdf
