Question 1(b) 2016 · October-November · Paper 23 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (b)
Part (b)
Any four from:
- prompt for input of candidate number
- input of candidate number
- check for candidate number of 1, 2 or 3
- output ‘invalid vote’ if input not 1, 2, or 3
- otherwise add 1 to appropriate total and …
- … output name of candidate voted for
Show text version of question
Question 1
Part (b)
Part (b)
Write an algorithm to complete Task 2, using either pseudocode, programming statements
or a flowchart. You can assume that Task 1 has been completed and that there are three candidates for class captain.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
..................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[4]
Question 5
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 2210_w16_qp_23.pdf
