Computer Science · May / June 2021 · Paper 1 HL · Question 14
Adapt for 2027Finding a logic error in a flowchart and writing a loop with validation and an average are on the course; write it in Python or Java.
IBCS
As printed in the paper
The question as text
14. The following flowchart is intended to represent an algorithm in which numbers that are input cannot be negative. The flowchart contains a logic error that will affect the algorithm’s functionality. HIGHEST = 0 START END LOWEST = 0 COUNTER = 0 INPUT NUMBER OUTPUT HIGHEST OUTPUT LOWEST COUNTER = COUNTER + 1 HIGHEST = NUMBER LOWEST = NUMBER Is COUNTER > 999? Is NUMBER > HIGHEST? Is NUMBER < LOWEST? Yes Yes Yes No No No (This question continues on the following page) (Question 14 continued)
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
14(a)(i)[1]
14(a)(ii)[2]
14(b)[1]
14(c)[8]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

