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