Question 5(a) 2018 · October-November · Paper 22 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (a)
Question 6
Question 6
Question 2
Question 4
Question 3
Question 6
Question 4
Show text version of question
Question 5
Part (a)
Question 5
The flowchart checks the level of chlorine and the depth of water compared to the height of the
swimming pool. Error messages are output if a problem is found.
START
INPUT Height, Depth, Chlorine
OK True
OUTPUT Is Depth > Yes "Water too Height/2 ? deep"
No OUTPUT Is Depth < Yes "Water too Height/3 ? shallow"
No OK False
Yes OUTPUT "Too Is Chlorine much chlorine >3 ? add more water" No
OUTPUT "Too Yes little chlorine Is Chlorine <1 ? add more chlorine" No
No Is OK = True ?
Yes
OUTPUT "Pool OK to use"
END
Question 11
Part (a)
Complete the trace tables for each set of input data.
Input data: 6, 2.5, 2
Height Depth Chlorine OK OUTPUT
Input data: 4, 3, 1.5
Height Depth Chlorine OK OUTPUT
Input data: 6, 3.5, 4
Height Depth Chlorine OK OUTPUT
Why this question appears here
99% assigned-topic match · Programming › Programming concepts
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_w18_qp_22.pdf
