Question: in codeblock for c++ program Create the following program. Emulate the Mega Million Lottery game. These are the rules: 1) The person must guess 5

in codeblock for c++ program  in codeblock for c++ program Create the following program. Emulate the
Mega Million Lottery game. These are the rules: 1) The person must
guess 5 numbers from 1 to 75, and a Mega ball number

Create the following program. Emulate the Mega Million Lottery game. These are the rules: 1) The person must guess 5 numbers from 1 to 75, and a Mega ball number from 1 to 15 (google Mega Million for more details) 2) There are multiple ways to win. Your program will determine if any of the possible winning outcomes occur and then output what the person has won or lost. The prizes are as follows: Mega bal1 1 + Mega Ball$2 $1 2 + Mega Ball 3 + Mega Ball$50 4 + Mega Ball 5 + Mega Ball$JACKPOT $5 $5 $500 $5,000 $1,000,000 3) Use the included megamillion.cpp file. a) Do not modify the included main function. b) Add functions as specified and make the program work. 4) This program includes the following constant variables: a) NUMBER RANGE- the maximum value for a regular number b) MEGABALL RANGE the maximum value for a Mega ball numbexr Por testing purposes use small values for the constants. The final submission should use the original Mega Million values

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!