Create a Math game with 2 or more classes. Class 1 should just be the basic initiation of the game and the second class is where all the GUI and logic goes.(additional classes may be added.) Firstly...


Create a Math game with 2 or more classes. Class 1 should just be the basic initiation of the game and the second class is where all the GUI and logic goes.(additional classes may be added.)


Firstly the dimension of the frame must be 500,500. The application title 'math game' message 'Welcome to game' with a button below said message where it says 'start'.


Once clicked, it will move to the next page where it says 'Select 2 numbers that adds up to x (x being a randomly generated number between 2-18)'
below that msg must show 'Win: (how many times won.), Loss: (how many times lost)'
Add some space between the msg and the 9 buttons near the bottom of the screen that numbers from 1-9.
below the 9 buttons have an 'End Game' button


Once end game is clicked, last page shows
'Game Session
Numbers correct : [ (numbers in order of play) ]
Numbers Wrong : [ (numbers in order of play) ]
Percentage of win for numbers greater than or equal to 10: (percentage)
Percentage of win for numbers less than 10: (percentage)'


Logic.
Must select 2 numbers before the round counts. (eg guess 7, clicking on the 7 button will not end the round.)
the random number must not be the same as the previous number. (eg rd 1 guess 7 rd2 cannot be 7 however rd 3 can be 7 again.)
The percentages at the end screen should not appear if a percentage cannot be formed. (eg played only 2 games guess 1 &guess 5. Both correct. Percentage of win for numbers greater than 10 should not show up at all.)

Dec 22, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here