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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started