what the output,
input and
processing tasks should be to meet the
requirements you have been given.
Show transcribed image text 2 (10 pts) A program calculates the probability of winning the lottery after at least m trials. Assume that you can only buy one ticket whose probability of winning the lottery in each trial is p. Therefore, the probability of not winning with the same ticket is 1-p in each trial. Also, the number of trials needed to win the lottery is represented by the random variable X The formula to calculate the probability of winning the lottery after at least n trials is n-1
2 (10 pts) A program calculates the probability of winning the lottery after at least m trials. Assume that you can only buy one ticket whose probability of winning the lottery in each trial is p. Therefore, the probability of not winning with the same ticket is 1-p in each trial. Also, the number of trials needed to win the lottery is represented by the random variable X The formula to calculate the probability of winning the lottery after at least n trials is n-1





