Question 4(a) 2022 · May-June · Paper 22 · 7 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (a)
Question 7
Question 1
Question 1
Question 75
Question 2
Question 2
Question 78
Question 3
Question 3
Question 84
Question 4
Question 1
Question 87
Question 5
Question 2
Question 91
Question 6
Question 4
Question 80
Question 7
Question 5
Question 75
Question 8
Question 6
Question 70
Question 9
Question 7
Question 65
Question 10
Question 1
Question 62
- 1
Question 30
Question 30
Show text version of question
Question 4
Part (a)
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 (a)
Complete the trace table for the algorithm using this input data:
75, 78, 84, 87, 91, 80, 75, 70, 65, 62, –1, 20
Counter Hot Cold Serve Temp Error 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 0478_s22_qp_22.pdf
