Computers are playing the increasing role in education. Write down program which will aid the elementary school learn multiplication. Use Random object to make two positive one-digit integers. Program must then prompt user with question, like:
How much is 6 times 7?
The student then enters the answer. Then the program checks students answer. If it is right, display message "Very good!" and ask another multiplication question. If answer is wrong, display message "No. Please try again." And let student try same question repeatedly until student at last gets it right. A separate method must be used to create each new question. This method must be called once when application begins execution and each time user answers question correctly.