This pseudocode algorithm calculates the product of all the numbers in the 0-indexed array multipliers.
01 product = 1
02 for count = 1 to multipliers.length - 1
03 multipliers[count] = product * multipliers[count]
04 next count
05 print(product)
The function length returns the number of elements in the array.
The algorithm contains several errors.
Identify two logic errors in the pseudocode algorithm.
Write the refined line to correct each error.
41 exam-style questions on OCR GCSE Computer Science Designing, creating and refining algorithms. Each one has a worked solution and a mark scheme showing where the marks go.