Question: Write a program that teaches arithmetic to a young child. The program tests addition and subtraction. In level 1, it tests only addition of numbers
Write a program that teaches arithmetic to a young child. The program tests addition and subtraction. In level 1, it tests only addition of numbers less than ten whose sum is less than ten. In level 2, it tests addition of arbitrary one-digit numbers. In level 3, it tests subtraction of one-digit numbers with a nonnegative difference. Generate random problems and get the player’s input. The player gets up to two tries per problem. Advance from one level to the next when the player has achieved a score of five points.
Step by Step Solution
3.32 Rating (155 Votes )
There are 3 Steps involved in it
ANSWER include include include using namespace std int main srandtimeNULL int level 1 int score 0 in... View full answer
Get step-by-step solutions from verified subject matter experts
