Math Quiz Maker
Write a web page that has a selector for choosing the type of math to be quizzed on (addition, subtraction, or multiplication), and a "Generate" button which will generate five random math problems for the user to solve and an input area for each. Add a submit button which, after clicking, will cause a display area to show the user their score as a percentage.
- Math problems should consist of 2 whole number, each between 2 and 12 (e.g. "2 - 6 = ").
- As a bonus, add an area after each question that will show "Correct" or "Incorrect" and display the correct answer after the submit button is clicked
- As a bonus, have it disable the input areas after the submit button is pressed (myElement.disabled = true;)
- As a bonus, add a reset function that will clear the answers, feedback, and score, and will make the input areas enabled again; call the function whenever the "Generate" button is clicked
The attempted quiz would look something like this:
A random number between 2 and 12 can be generated like this