Question: You created a lottery game application. Create a similar game using check boxes. For this game, generate six random numbers, each between 0 and 30

You created a lottery game application. Create a similar game using check boxes. For this game, 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: 

Award ($) Matching Numbers Three matches 100 Four matches 10,000 Five matches 50,000 Six matches 1,000,000 Zero, one, or

Save the file as JLottery2.java.

Award ($) Matching Numbers Three matches 100 Four matches 10,000 Five matches 50,000 Six matches 1,000,000 Zero, one, or two matches

Step by Step Solution

3.54 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

JLottery2java import javaawt import javaxswing import javaawtevent public class JLottery2 extends JFrame implements ItemListener final int NUM 31 fina... View full answer

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 Java Programming Questions!