Note AcademyNote Academy

Computer Science · Oct / Nov 2022 · Paper 23 · Question 2

2210

As printed in the paper

The question as text

An algorithm has been written to: • set all 50 elements of the array Reading[1:50] to zero • input values between 35 and 50 inclusive • end the process when an input of –1 is made or 50 valid numbers have been entered • reject all other values • count the number of times each valid value is input • output the number of times each value has been input, starting with the lowest value.

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

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

  • 2(b)[3]

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