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 players numbers, and the amount of money the user has won, as follows:

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
JLottery2java import javaawt import javaxswing import javaawtevent public class JLottery2 extends JFrame implements ItemListener final int NUM 31 fina... View full answer
Get step-by-step solutions from verified subject matter experts
