Project 35: Variables 'p', 'x', and 'n' have been initialized. There are also working methods called called normalcdf and invNorm.
p is the population proportion or true proportion (.2 in the example above)
x is the number of successes (30 in the example above)
n is the number of trials or the sample size (100 in the example above)
Review projects 2-5 if you need a reminder of how normalcdf and invNorm work.
Task: Appropriately initialize the values for 'z' and 'prob' where z represents the number of standard deviations that p-hat is away from the mean and prob represents the probability of obtaining a random p-hat less than the one obtained.
Example: If p = .2, x = 30, n = 100 then z should be 2.5 and prob should be .9983.