Project 28: Check out Time
Project 28: We are interested in the probability that a randomly chosen customer would spend more than 200 seconds at checkout.
There is a working method called randomNormal. The method accepts the mean and standard deviation of a normal distribution and returns a random value from the distribution.
Example: randomNormal(0,1) would return a random score from the standard normal distribution (since the mean of the standard normal distribution is 0 and sd is 1).
There is a working method called random. The method accepts no parameters (empty parentheses) and returns a random value from 0 to 1.
Example: random() yields a value in the interval [0, 1)
Task: Appropriately initialize the value of ‘prob’ to represent the probability that a customer would spend more than 200 seconds checking out at this grocery store. Simulate 10,000 trials to obtain an accurate approximation.
Note: The program may take several seconds to execute due to the amount of computation,
**If your code works for 5 test cases in a row, you can enter your e-mail address.