Question: (10 points) Write a program that will help an elementa ry school student learn addition . Use a loop to generate 5 random addition questions
(10 points) Write a program that will help an elementary school student learn addition. Use a loop to generate 5 random addition questions for two integers between 0 and 20. After the student enters the answer, the program checks the students answer and display whether it is correct. The program should also display the number of correct answers and time spent taking the test.
Sample run :
What is 7 + 13? 20
You are correct!
What is 3 + 0? 3
You are correct!
What is 16 + 20? 26
Your answer is wrong.
16 + 20 should be 36
What is 3 + 5? 8
You are correct!
What is 16 + 17? 33
You are correct!
Correct count is 4
Test time is 32 seconds
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
