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

Write a C program (not C++) in codeblocks that can be used as a math tutor for a

ID: 3529502 • Letter: W

Question

Write a C program (not C++) in codeblocks that can be used as a math tutor for a young student. The program should display following menu: 1. Add 2. Subtract 3. Multiply Enter Your Choice (1-3): The program should generate 2 random numbers bewteen 0 and 99 and display them as a 'problem' along with the operation chosen by the user. The program should the read the user's answer and print a message of congratulations if correct. If answer is incorrect, a message displaying the correct answer should be displayed. You must use a switch statement somewhere in the program. Use separate functions to: 1. Print the menu and read the user's choice. 2. Display the Problem. 3. Read the user's answer. 4. Get the computer's answer. 5. Display the result

Explanation / Answer

#include #include using namespace std; int DoMenu(); void addition(int random1, int random2); void subtraction(int random1, int random2); void multiplication(int random1, int random2); void division(int random1, int random2); int main() { int random1, random2; srand(time(0)); int choice; do { random1 = 1+(rand()%20); // from 1-20 random2 = 1+(rand()%20); // from 1-20 choice = DoMenu(); switch (choice) { case 0: cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote