Question: Description of program: You are to write a program name numbers.java . You are to use arrays as your data structure. Here are some requirements

Description of program:

You are to write a program name numbers.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 subgroup.

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 generate another set of groups of numbers. 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 groups one group per line on the screen in the order of SubGroup 1 followed by the single number in SubGroup 2.

You are write a program name numbers. Java. You are to use arrays as your data structure. 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) A group will be made up of two sets of numbers-a subgroup (set) of 5 numbers and another subgroup (set) of 1 number. The numbers must be randomly generated from the range of 1 - 69 for Sub group 1 and 1 - 26 for Sub Group 2. There must be no repetition of numbers in the same subgroup. However, if the user wants for example 2 groups, then it possible for these two groups to differ by only 1 number (so repetition between groups are allowed proving that the 2 groups are not identical. You are to use arrays to store the groups of numbers. The program must also prompt the user asking him/her if he/she wants to generate another set of groups of numbers. if answer is "Yes" rerun the program. If "no" terminate the program. If "yes" the random generator must start back from time 0. Sort the numbers in Group 1 in ascending order for each group. Then display all of the groups one group perline on the screen in the order of Subgroup 1 followed by the single number in SubGroup 2

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!