Question: Write a program that emulates the popular lottery game Powerball. First ask the user how many times he wants to play. Then ask the user

 Write a program that emulates the popular lottery game "Powerball". First

Write a program that emulates the popular lottery game "Powerball". First ask the user how many times he wants to play. Then ask the user for 5 numbers between 1 and 69, and one additional "Power Ball" between 1 and 26. Then simulate the drawing as many times as indicated initially by creating random numbers in the given ranges, and comparing them to the numbers the user put in. After each drawing, let the user know if he won, and how many numbers he has guessed correctly. Output each drawing's result in the console

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!