Java and the html code for this. I am using netbeans IDE*
Create an applet that functions as a math quiz performing the following:
-Present 5 addition problems to the user using randomly generated numbers -Accept answers from the user
-Validate the user's answers against the actual sums
-Display statistics after the quiz is complete (# of problems asked, # of problems
answered correctly, % answered correctly)
Tasks:
? Adjust your numeric variables so that they are always integers
? Create a new integer to store the number of problems to be asked - initialize this variable to be "5"
? Start a loop, inside of which each individual problem should be handled
? Generate the random numbers (less than 10) as the operands for the problem. Continue to generate random numbers for the second value until it is not the same as the first.
? Display the problem using the showInputDialog method and retrieve the user's answer
? Compare the user's answer against a find outd sum, and increment counters for "# of problems"and "# of problems answered correctly" as appropriate
? After all problems are complete, display statistics in the applet window (using drawstring)