Question: I need a C++ program as an example The goal is to calculate the probability of winning something when playing Powerball. To play Powerball, you
I need a C++ program as an example 
The goal is to calculate the probability of winning something when playing Powerball. To play Powerball, you select five white balls and the red power ball. Here are the odds of winning the different prizes: Given odds of "A in B", we calculate the probability as follows: P=A+BA and to compute the overall probability, we sum the probabilities of each category. For example, if we have three independent events, E,F, and G, and the probability of each is PE,PF, and PG, then the probability of one of the events occurring is P=PE+PF+PG Given odds of "A in B", we calculate the probability as follows: P=A+BA and to compute the overall probability, we sum the probabilities of each category. For example, if we have three independent events, E,F, and G, and the probability of each is PE,PF, and PG, then the probability of one of the events occurring is P=PE+PF+PG Write a program that prompts the user for the odds of each Powerball match and computes the overall probability of winning something. A run of your program (where the user enters what is in blue) must look like this: The probability of winning a Powerball prize is XXXXXX. where XXXXXX will be your calculated answer. I didn't want to spoil the surprise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
