I beg you to help out.
I dunno how to create to create a math tutor. It is similiar to the console based math tutor you created earlier in the year. The applet will have two button. A new problem button, and a check answer button. If the user clicks on new problem, a new problem will be displayed in the problem label.
newProblem - a button that presents the user with a new
problem when clicked.
checkAnswer - a button that checks the user's answer with
the correct answer. If the answer is correct,
displays "Good Job!". If the answer is incorrect,
displays "Nice try, the answer is " and the correct
problem - Label containing the problem
answer - Label containing the answer message
userInput - TextField for the user to type an answer into. If the
users hits enter, the answer should display.
The arithmatic expression can consist of integers between 0-20 and
(+, -, /, *). Use a random number generator for this.
It generates + = 1 - = 2 / = 3 * = 4
Can anybody write it so I can see how it works? Thanks