[SOLVED] create an application that will generate random numbers

30.00 $

Categories: ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lottery-Number-Chooser.zip (54.1 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

You have been hired by a company to create an application that will generate random numbers to use for lottery tickets.

The application should create numbers for 3 different lotteries. The lotteries include:

 3 number lottery (numbers 0 – 9)

4 number lottery (numbers 0 – 9)

5 number lottery (numbers 1 – 39)

Each lottery should not have duplicated numbers in it.

For 5 extra credit points make sure that the same number is not used twice in all of the lotteries.

You will want to use an array

A bool array would work nice

You will want to create a method to set all numbers to false at the beginning and before eachnew lottery game

Should be an instance variable

  • Lottery-Number-Chooser.zip