Question 5(a) 2017 · October-November · Paper 22 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (a)
Question 5
Question 1
Question 1
Question 2
Question 2
Question 1
Question 3
Question 3
Question 4
Question 4
Question 5
Question 5
Question 6
Question 6
Question 7
Question 7
Question 8
Question 8
Question 9
Question 2
Question 10
Show text version of question
Question 5
Part (a)
This flowchart checks a batch of 10 rice sacks for weight. Sacks should weigh 50 kilograms each. Sacks weighing over 50.5 kilograms or less than 49.5 kilograms are rejected. The number of sacks accepted and the number of sacks rejected is output.
START
Accept 0 Reject 0 Count 0
Is Count Yes = 10? OUTPUT Accept Accept + 1 Accept, No Reject
Count Count + 1 END
INPUT Sack
Is Sack Yes Reject Reject + 1 < 49.5?
No
Is Sack No > 50.5? Yes
Question 9
Complete the trace table for the input data:
50.4, 50.3, 49.1, 50.3, 50.0, 49.5, 50.2, 50.3, 50.5, 50.6
Accept Reject Count Sack OUTPUT
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_w17_qp_22.pdf
