Question 7(c)(i) 2025 · February-March · Paper 22 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 7
Part (c)
(i)
Question 3
Show text version of question
Question 7
Part (c)
(i)
Question 7
This flowchart represents an algorithm.
START
OUTPUT "Continue?"
INPUT Answer
No IS Answer = Yes 'Y' ?
INPUT STOP Value1
INPUT Operator
Yes IS Operator = INPUT 'A' ? Value2 OUTPUT Value1 + No Value2
Yes IS Operator = 'S' ? OUTPUT Value1 – No Value2
Yes IS Operator = No 'M' ? OUTPUT OUTPUT Value1 * Value1 /
Value2 Value2
Question 7
, , There are problems with the given algorithm. If the lower-case letter ‘y’ is entered for Answer, the algorithm stops and if a lower-case letter is entered for Operator, the algorithm gives an incorrect output.
(i)
Explain how you would change the algorithm to prevent the problems described.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.....................................................................................................................................
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 0478_m25_qp_22.pdf
