I need a huge favor here, i am a teacher working on a program for my Programming class, the other classes made a program and i was wondering if anyone could help me out with it.
I need to Write a Java console program that will randomly generate the numbers for a Super 7 lottery ticket.
With each ticket the customer receives three sets of seven numbers. Each set of seven numbers is called a board in the lottery business. So, if the user buys just one ticket, they get 3 boards. If they buy two tickets, they get 6 boards. If they buy three tickets, they get 9 boards, and so on. Each number on a board is a unique integer (no duplicates permitted) in the range of 1 to 47 (inclusive).
The program should do the following:
Ask the user how many tickets they want to purchase. Remember, for one ticket you have to generate three rows of seven numbers.
Generate all the tickets, ensuring no duplicate numbers within each board, and sort them in ascending order (smallest to largest).
Output the numbers as displayed in the screen shots below:
Figure 1 - Sample input and output
I need to Write a Java console program that will randomly generate the numbers for a Super 7 lottery ticket.
With each ticket the customer receives three sets of seven numbers. Each set of seven numbers is called a board in the lottery business. So, if the user buys just one ticket, they get 3 boards. If they buy two tickets, they get 6 boards. If they buy three tickets, they get 9 boards, and so on. Each number on a board is a unique integer (no duplicates permitted) in the range of 1 to 47 (inclusive).
The program should do the following:
Ask the user how many tickets they want to purchase. Remember, for one ticket you have to generate three rows of seven numbers.
Generate all the tickets, ensuring no duplicate numbers within each board, and sort them in ascending order (smallest to largest).
Output the numbers as displayed in the screen shots below:

Figure 1 - Sample input and output