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
Get step-by-step solutions from verified subject matter experts
