Question 4(b) 2022 · May-June · Paper 22 · 1 mark
Reveal official mark-scheme answer
Official answer for Question 4
Part (b)
Question 1
Show text version of question
Question 4
Part (b)
Question 4
This algorithm checks the temperature of hot food being served to customers.
Error
START
Counter 0 Hot 0 Cold 0 Serve 0
INPUT Temp
Is Temp Yes Error = –1? ((Hot + Cold) / Counter) * 100
No
Is Temp Yes OUTPUT Hot Hot + 1 > 86? "Too Hot"
Counter No Counter + 1 OUTPUT Error Is Temp Yes Cold Cold + 1 < 63? No OUTPUT Serve Serve + 1 "Too Cold" END
Question 11
Part (b)
State how the final output from the algorithm could be improved.
...................................................................................................................................................
.............................................................................................................................................
Why this question appears here
52% 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 0478_s22_qp_22.pdf
