OCR D1 2009 January — Question 1

Exam BoardOCR
ModuleD1 (Decision Mathematics 1)
Year2009
SessionJanuary
TopicFixed Point Iteration

1 The flow chart shows an algorithm for which the input is a three-digit positive integer.
\includegraphics[max width=\textwidth, alt={}, center]{43fe5fd5-4b98-4c3a-90ca-a1bd5cf065fe-2_1294_1493_356_328}
  1. Trace through the algorithm using the input \(A = 614\) to show that the output is 297 . Write down the values of \(A , B , C\) and \(D\) in each pass through the algorithm.
  2. What is the output when \(A = 616\) ?
  3. Explain why the counter \(C\) is needed.