I need to write a Java Applet that will help an elementary school student learn multiplication.
Use either Random class or Math.random() method to produce two positive one-digit integers.
The applet should prompt the user with a question. The student then enters an answer.
If the answer is correct, display the message "Very good!" and ask another question.
If the answer is wrong, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right.
In method init() create a JLabel and a JTextField. Add them into the container, and add this as the action listener to the JTextField.
You need to define a method generateQuestion that will generate two random numbers from 1 to 9, and put a question into the JLabel.
It returns a correct answer. In method actionPerformed you need to check the user answer with the correct answer.
Then call another method displayMessage that displays the message of correctness by calling showStatus.
I only have 100 but I hope someone can help
Heres how it should look:
This post was edited by Modification on Apr 3 2014 12:31am