Question: Write a complete program which gets 2 integers from the user, K and N , where they are confined to be 1 < = K

Write a complete program which gets 2 integers from the user, K and N, where
they are confined to be 1<=K<=6, and 6<=N<=8. Then generate K lists of N
random numbers in the range 1 to 100. None of the drawn random numbers
appears more than once in the generated lists.
Input validation is required where the range of K and N must be 1<=K<=6 and
6<=N<=8. And both inputs must be Integers.
The following shows an example execution of the program. Note that the 42 numbers
in the 7 entries appear only once.
Enter how many numbers are in each entry (N), The range of N is N >=6 and
N <=8: 7
Enter how many groups (K), the range of K is K >=1 and K <=6: 6
The {K} groups generated:
[94,67,45,33,24,15,8]
[85,70,72,81,32,40,18]
[46,65,75,59,1,69,39]
[41,6,54,89,99,11,28]
[13,68,95,56,91,20,36]
[35,3,97,62,86,17,77]

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!