Question: ( 1 0 points ) Write a program that will help an elementary school student learn addition. Use a loop to generate 5 random addition

(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 in the range of 0 through 20. After the student enters the answer, the program checks the student's answer and displays whether it is correct. The program should also display the number of correct answers.
Sample run:
What is 1+5?
6
You are correct!
What is 11+15?
26
You are correct!
What is 20+18?
38
You are correct!
What is 11+4?
15
You are correct!
What is 5+17?
12
Your answer is wrong.
5+17=22
( 1 0 points ) Write a program that will help an

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 Programming Questions!