Question: Java lotto program You will create a new program that simulates the game of Lotto. How does this work? The user will input 6 numbers

Java lotto program Java lotto program You will create a new program that simulates the

You will create a new program that simulates the game of Lotto. How does this work? The user will input 6 numbers (integer): ranging from 1 to 59. The computer will randomly pick the winning numbers (6 of them and one "Bonus number). In order to win first prize, the user must match all of the 6 numbers. In order to win second prize, the user must match 5 of the 6 numbers AND the Bonus number. Numbers CANNO T be generated twice. For example, 6, 18, 18, 50, 52, 55 is not valid; as 18 middot appears twice. Winning numbers (via the computer) arc always presented in ascending order. This lab MUST use Arrays for storing the numbers. Include data validation and echo user input!!!!! Fifteen points (15) will be deducted if the Java Source code has been modified and recompiled. In addition to solving the programming challenge, remember to include the internal documentation

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!