Page 1 of 1

Part B (Practical Coding) Answer ALL questions - 50 marks total Question 5 (15 marks): The German mathematician Gottfrie

Posted: Fri May 20, 2022 11:12 am
by answerhappygod
Part B Practical Coding Answer All Questions 50 Marks Total Question 5 15 Marks The German Mathematician Gottfrie 1
Part B Practical Coding Answer All Questions 50 Marks Total Question 5 15 Marks The German Mathematician Gottfrie 1 (95.21 KiB) Viewed 37 times
Part B (Practical Coding) Answer ALL questions - 50 marks total Question 5 (15 marks): The German mathematician Gottfried Leibniz developed the following method to approximate the value of n: 11/4 = 1 - 1/3 + 1/5 - 1/7 + ... Write a program that allows the user to specify the number of iterations used in this approximation and that displays the resulting value. An example of the program input and output is shown below: Enter the number of iterations: 5 The approximation of pi is 3.3396825396825403 Question 6 (15 marks): A list is sorted in ascending order if it is empty or each item except the last 2 - 2*822 20.32-05-17