Question: 1.Suppose you want to develop a program for a first-grader to practice subtraction. The program randomly generates two single-digit integers, number 1 and number 2
1.Suppose you want to develop a program for a first-grader to practice subtraction.
The program randomly generates two single-digit integers, number 1 and number 2
Example: It displays to the student a question such as "What is 9 - 2?" After the student enter the answer, the program displays a message indicating whether it is correct.
Specifically, the program can work as follow:
1.Generate two single-digit integers into number1 and number2
2.If number1 < number2, swap number1 with number2
3.Prompt the student to answer, "What is number1 - number2?"
4.Check the student's answer and display whether the answer is correct
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
