(Solved):In Java, generate six random numbers, each between 0 and 30, inclusive. Allow the user to choose six check boxes to play the game. (Do not allow the user to choose more than six boxes.) After the… View Answer…

 

Question

In Java, generate six random numbers, each between 0 and 30, inclusive.

Allow the user to choose six check boxes to play the game. (Do not allow the user to choose more than six boxes.)

After the player has chosen six numbers, display the randomly selected numbers, the player’s numbers, and the amount of money the user has won, as follows:

0,1, or 2 matching numbers = $0

3 matching numbers = $100

4 matching

Scroll to top