Question: java program generate random number, saves them in a two-dimensional array, and then displays as ticket.. Here are the requirements for your program; - Ask

java program

generate random number, saves them in a two-dimensional array, and then displays as 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 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

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!