you are to write a program name powerball java you are to use arrays as your data st 5189654
You are to write a program name powerball.java. You are to use arrays as your data structure.
Here are some requirements for the program:
1. The program must prompt the user to enter the amount of groups of numbers he/she wants to
generate (must be between 1 and 5)
2. A group will be made up of two sets of numbers a
subgroup (set) of 5 numbers and another
subgroup (set) of 1 number.
3. The numbers must be randomly generated from the range of 1 69
for Sub Group 1 and 1 26
for Sub Group 2.
4. There must be no repetition of numbers in the same group.
5. However, if the user wants for example 2 groups, then it is possible for these two groups to differ
by only 1 number (so repetition between groups are allowed providing that the 2 groups are not
identical).
6. You are to use arrays to store the groups of numbers.
7. The program must also prompt the user asking him/her if he/she wants to buy more tickets. If
answer is “yes” rerun the program. If “no” terminate the program. If “yes” the random generator
must start back from time 0.
8. Sort the numbers in Group 1 in ascending order for each group.
9. Then display all of the tickets purchased by the user on the screen in the order of Group 1
followed by the single number in Group 2.