Question: IN JAVA Assignment Content Lucky Number Program: Write a program that generates lottery numbers for the user, saves them in a two-dimensional array, and then

 IN JAVA Assignment Content Lucky Number Program: Write a program that

IN JAVA

Assignment Content Lucky Number Program: Write a program that generates lottery numbers for the user, saves them in a two-dimensional array, and then displays the lottery ticket. Here are the requirements for your program; - Ask the user how many numbers (integers) they need (between 3 to 5) - Ask the user for the range for the numbers (0-99 or 0-10) - Setup and initialize a two-dimensional array that allows the user to request a maximum of 4 sets of numbers. - Use a random number generator (java.lang. Math.random()) method to generate the numbers the user requests - Save them in the array - If they have played less than 4 times, ask the user if they want to play again (request another set of numbers) and then start over with the request for numbers. - When the user is done, or if they choose the maximum sets of numbers, display a nicely formatted and labeled lottery ticket with their numbers on it, for example

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!