Question: please use python to solve it. thank you Problem 3: Do the following: (i) (10 points) Ask the user to input a positive even integer

please use python to solve it. thank you
Problem 3: Do the following: (i) (10 points) Ask the user to input a positive even integer " n " greater than 2, if the input number is not a positive even integer, display "Invalid input", then ask the user to input it again for up to THREE TIMES. For the fourth wrong input, display "bye-bye" then exit the code. (ii) ( 10 points) Find show the pair of a and b, such that a and b are both prime numbers and a+b=n. Problem 4 Use the following methods to find and properly display approximated pi: pi_1, pi_2, and pi_3 (i) pi_1: Calculate the approximate area of the following curve: y=sqrt(1x2) between 0 and 1 with n=150. You may use either A or B. 1 (ii) Create two arrays AA and BB, each has 1500 elements of random number between 1 and 1. this fraction to calculate pi_2. (iii) Use 20 terms approximation to calculate approximated pi: pi_3: (you are NOT allowed to type in terms manually.) 4=131+5171+91
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
