Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ ET-575 EC Mega Millions Lottery (Random) Create the following program. Emulate the Mega Million Lottery game. These are the rules: 1) The person must
C++
ET-575 EC Mega Millions Lottery (Random) 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: $1 $2 $5 $5 $50 $500 $5,000 $1,000,000 SJACKPOT Mega ball 1 + Mega Ball 2 Mega Ball 3 Mega Ball 4 Mega Ball 5 + Mega Ball 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 maxmum value for a regular number b) MEGABALL RANGE -the maximum value for a Mega ball numbe:r For testing purposes use small values for the constants. The final submission should use the original Mega Million values Introduction to c+ Programming Design and Implementation S. Trowbridge 2017
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started