Note AcademyNote Academy

Computer Science · Oct / Nov 2023 · Paper 22 · Question 6

2210

As printed in the paper

The question as text

The flowchart represents an algorithm that performs a process on groups of values that are input. The algorithm will fail if the first value of any group is 0. An input of –1 will terminate the algorithm. START STOP Total 0 Count 0 INPUT Value IS Value = 0 ? IS Value = –1 ? No No Yes Yes Total Total + Value Count Count + 1 Average Total / Count OUTPUT "Total is ", Total OUTPUT "Average is ", Average

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 6(a)[5]

  • 6(b)[2]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.