D1 June 2016 Q5

EdexcelOld spec7 marksAlgorithms

5.

Figure 4: flow chart of the algorithm
Figure 4

An algorithm is described by the flow chart shown in Figure 4.

Given that \(x = 27\) and \(y = 5\),

(a) complete the table in the answer book to show the results obtained at each step when the algorithm is applied. Give the final output. (4)

The numbers 122 and \(\dfrac{1}{2}\) are to be used as inputs for the algorithm described by the flow chart.

(b)
(i) State, giving a reason, which number should be input as \(x\).
(ii) State the output. (3)