Question: c++ please help You are going to create a PowerBall Lottery game with functions. First, you are going to generate 5 UNIQUE numbers between 1

c++ please help

You are going to create a PowerBall Lottery game with functions. First, you are going to generate 5 UNIQUE numbers between 1 and 69. Then you are going to generate the powerball number, which is a number between 1 and 26. Next you are going to ask the user for 5 numbers. Users should only be allowed to enter numbers in the range 1-69 for regular numbers, 1-26 for powerball pick. You will compare each of the user's numbers to the numbers chosen for the lottery. Then you are going to ask the user for their powerball number guess. You will compare the value of the user powerball number to the computer powerball number. You will output: the lottery numbers, the user numbers, and the number of powerball numbers the user picked correctly. You will output if the user got the powerball correct. You will use functions that have functional signatures given below: int randBetween(int min, int max) // calculate a random # between min and max int getValue() // returns a user entered value bool isSame(int newNumber, int number) // returns true if newNumber is the same as number bool isInBounds(int number, int min, int max) // returns true if the number is between min and max (inclusive) void printNumbers(int number1, int number2, int number3, int number4, int number5, int powerball) // prints the powerball and user numbers as 53 24 3 7 33 POWERBALL 5 Student Learning Outcomes: Use function prototypes to create functions Use functions Algorithm design Loops Conditionals Pass-by-copy

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!