Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Develop a C++ program that teaches elementary school students multiplication. Us

ID: 3539971 • Letter: D

Question

Develop a C++ program that teaches elementary school students multiplication. Use the random module/function to produce two positive one-digit integers. It should then type a question such as:


How much is 6 times 7?


The student then types the answer. Your program checks the answer; if it is correct, the correctMessage function is called; if it is incorrect, the incorrectMessage function is called. Your program will count the number of correct and incorrect answers. After 10 answers (any/all responses count), the program will calculate the percentage of correct responses. If the percentage is lower than 75%, your program will call the needHelp function, then terminate. Otherwise, the program continues until the student enters the sentinel value (-1) to end the program.

Explanation / Answer

#include #include #include void game(void); int main(void) { srand(time(NULL)); game(); return 0; } void game(void){ int choice=1; while(choice!=0){ int number1,number2,resultStudent,result,aha; number1=1+rand()%9; number2=1+rand()%9; result=number1*number2; printf("How much is %d times %d ?",number1,number2); scanf("%d",&resultStudent); while (resultStudent!=result) { printf("No. Please try again."); scanf("%d",&resultStudent); } printf("Very Good "); printf("Do you wanna play again?(0 for Exit): "); scanf("%d",&choice); if (choice!=0) printf("Hmm you wanna play again... "); } printf("Program is terminated."); }
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote