Question 2
OCR B (MEI) Further Maths June 2025 Modelling with algorithms (Y433-01)A level5 marks
On the specification
- (a)
- AA1-A5 Modelling with Algorithms: Algorithms, basic ideas and complexity
- (b)
- AA1-A5 Modelling with Algorithms: Algorithms, basic ideas and complexity
Question text
2 Consider the following algorithm. Line 10 Let A = 5, B = 6, C = 150 Line 20 Calculate D = (A+B) '2 3 Line 30 Calculate E = C-D 2 Line 40 If E 1 0 1. go to Line 100 Line 50 If E 2 0 go to Line 80 Line 60 Let B = D Line 70 Go to Line 20 Line 80 Let A = D Line 90 Go to Line 20 Line 100 Output D Line 110 Stop (a) Work through the algorithm, recording the values of A, B, D and E every time they change. You should record the exact values of A, B and D, and the value of E correct to 3 decimal places. Give the final output to 2 decimal places. [4] The algorithm gives the cube root of 150 correct to 2 decimal places. A student adapts the algorithm to try to find the cube root of 1500 correct to 2 decimal places by changing only Line 10 to ‘Let A = 5, B = 6, C = 1500’. (b) Explain why this change will not give the output of the cube root of 1500 correct to 2 decimal places. [1]