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

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 numbers = $10,000

5 matching numbers = $50,000

6 matching numbers = $1,000,000

Additionally, add a menu bar to the program with a File menu. In the File menu, add a submenu (JMenuItem) called About. When the user clicks on the About menu item, display a JOptionPane message dialog that contains the course number (CSC 102).

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!