Question: Write a lottery program in java that can do the following: The user picks 3 numbers from 1-5. A number cannot be repeated. The program

Write a lottery program in java that can do the following:

The user picks 3 numbers from 1-5. A number cannot be repeated.

The program randomly selects 3 numbers from 1-10. A number cannot be repeated.

If the two sets of numbers are equivalent (sequence of numbers doesnt matter), the user wins $50. If not, user loses $10.

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!