# # PSEUDO_CODE example for program to calculate pi # 1. Import packages needed (random,numpy) 2. Assign number(N) of random co-ordinates to test 3. For each of N times: Get two (x,y) random co-ordinates in [-1, 1] if (x,y) is inside circle of radius 1: add one to inside count(starting from 0) 4. Compute PI estimate = 4* inside count / N 5. Ouput PI estimate and % error: 100 * |Actual PI- PI esimate)|/actual PI 6. Repeat estimate for N = 10**i for i between 1 and 7 and print results