Question: write a code for 3rd grade math quiz that generate addition, subtraction, multiplication and division questions (randomly). Use only numbers in the range 0 to

write a code for 3rd grade math quiz that generate addition, subtraction, multiplication and division questions (randomly). Use only numbers in the range 0 to 100 inclusive in the math problems. No number should exceed 100 in the question or answers. Ask the student for how many questions generate and provide that many questions with the option to enter a negative number to end the quiz early. The code will display Good job! after each right answer and Sorry, incorrect, the correct answer is (provide the right answer here)after each wrong answer. Also provide a score at the end: number corrected, number wrong and percentage correct.CAUTION! avoid dividing by 0 is no questions are answered!

Example test output:

How many questions would you like? 6

you may enter a negative number at any tome to quit early.

Q#1 of 6: 69 + 7? 76

Good Job!

Q#2 of 6: 11*6? 56

Sorry, incorrect answer; the correct answer is: 66

Q#3 of 6: 14/2? 7

Good Job!

Q#4 of 6: 54-20? 34

Good Job!

Q#5 of 6: 21/7? -1

Your score is: 3 of 6 for 50%

Good-bye!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!