This is the situation
You’ve been hired by the local Lottery Agency to create a program that automatically picks one set of six random numbers.
The first five numbers must be unique whole numbers (no duplicates), and each of them must be greater than 0 and less than 51. The sixth number can be any whole number greater than 0 and less than 61.
After displaying the first set of six numbers, the customer should be asked if he or she would like another set of numbers. Continue to display a set of numbers as described above, as long as the customer answers “yes”. Otherwise, end the program.
Your solution must be separated into, at least, two files (Implementation class and a Test class). There should only be minimal code in the Test class, just enough to instantiate an object, and invoke the appropriate function(s).
You’ve been hired by the local Lottery Agency to create a program that automatically picks one set of six random numbers.
The first five numbers must be unique whole numbers (no duplicates), and each of them must be greater than 0 and less than 51. The sixth number can be any whole number greater than 0 and less than 61.
After displaying the first set of six numbers, the customer should be asked if he or she would like another set of numbers. Continue to display a set of numbers as described above, as long as the customer answers “yes”. Otherwise, end the program.
Your solution must be separated into, at least, two files (Implementation class and a Test class). There should only be minimal code in the Test class, just enough to instantiate an object, and invoke the appropriate function(s).


0 comments