Question: Please Show all the steps and explain. Java Please do not provide the answer that's already in chegg. Qn9 (Optional, 10 bonus points)Create a lottery

 Please Show all the steps and explain. Java Please do not

Please Show all the steps and explain. Java Please do not provide the answer that's already in chegg. Qn9 (Optional, 10 bonus points)Create a lottery game application. Generate three random numbers (Math.random()), each between 0 and 9. Allow the user to guess three numbers. Compare each of the user's guesses to the three random numbers and display a message that includes the user's guess, the randomly determined three-digit number, and the amount of money the user has won as follows: Matching Numbers Any one matching Two matching Three matching, not in order Three matching in exact order No matches Award ($) 10 100 1,000 1,000,000 0 Note: Make certain that your application accommodates repeating digits. For exam- ple, 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 guesses-just one. Save the file as LotteryXX.java. Note that for your submission, you need to replace XX with your name. Your application should be able to let user choose if he/she wants to play the game again

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!