Question: In this assignment you will use inheritance to generate random numbers as easy pick for two different lotto games: Lotto and small Lotto Ask the

 In this assignment you will use inheritance to generate random numbers

as easy pick for two different lotto games: Lotto and small Lotto
Ask the user what game to play 1. Lotto 2. Small Lotto

In this assignment you will use inheritance to generate random numbers as easy pick for two different lotto games: Lotto and small Lotto Ask the user what game to play 1. Lotto 2. Small Lotto Quit Generate random numbers and Storethe numbers in an array. Write the necessary code to make sure that none of these numbers is repeated (e.g., first five numbers are unique). No number of the first 5 numbers can be repeated more than once. For the lotto game, generate a number between 1 and 40 (called Wild number). This number is generated independently from the 5 numbers and you don't check this number for duplicates Your code must meet the following requirements: 1. Your name, assignment name, and code date must be typed as comment at the beginning of the source code 2. Implement inheritance in your code. 3. Your code must consist of at least 4 different classes: one with the main method, second as the super class and two classes as subclasses. 4. Provide good documentation of your code

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!