Note AcademyNote Academy

Computer Science · Oct / Nov 2023 · Paper 23 · Question 8

2210

As printed in the paper

The question as text

This is an algorithm to find if a batch of parts has been manufactured successfully. Accept INPUT PartOK IS PartOK = 'Y'? IS Accept = 10 ? IS Reject > 1 ? 0 Accept OUTPUT "Too many rejected ", Error, "% error" OUTPUT "Success" Accept + 1 Reject 0 Reject Reject + 1 Error Reject/Accept * 100 Yes Yes Yes No No No START STOP

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

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

  • 8(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.