Question: Create a lottery game application. Generate three random numbers, each between 0 and 9. Allow the user to guess three numbers. Compare each of the

Make certain that your application accommodates repeating digits. For example, if a user guesses 1, 2, and 3, and the randomly generated digits are 1, 1, and 1, do not give the user credit for three correct guessesjust one. Save the file as Lottery.java.
Award ($) Matching Numbers Any one matching 10 Two matching 100 1,000 Three matching, not in order Three matching in exact order 1,000,000 No matches
Step by Step Solution
3.32 Rating (164 Votes )
There are 3 Steps involved in it
Lotteryjava Allow the user to guess three randomly chosen numbers Display a message indicating the amount of money the user has won as follows Any one ... View full answer
Get step-by-step solutions from verified subject matter experts
