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
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
Get step-by-step solutions from verified subject matter experts
