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
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
Part B (Practical Coding) Answer ALL