Question: Write a program to be used as a math tutor for a young student. The program should display a menu allowing the user to select
Write a program to be used as a math tutor for a young student. The program should display a menu allowing the user to select addition, subtraction, multiplication or division. The final selection on the menu should allow the user to quit and exit the program. Each of modules, Addition, Subtraction, Multiplication and Division should be separate functions called from Main.
1. Display the menu-Accept user input on the operation to be performed
2. Generate 2 random numbers from 1-20 - Pass the random numbers to each function as arguments.
3. If user selects division, ensure the divisor is not zero.
4. Display the numbers and accept the users answers from the keyboard on whether they
perform addition, subtraction, multiplication or division
5. Compute the correct answer with your program. Compare the users answer to the
answer you calculated in your program.
6. If the user enters the correct answer, display the message
Congratulations..You are Correct
7. If the user enters the incorrect answer, display the message
Incorrect..The correct answer is...
display the correct answer.
8. The program should display the menu again, until the user ends the program by
choosing to quit
------------------------------------------------------------------------------------------------------------------------------------
- must include a header file and prototype file ( example function addit/devideit etc etc)
- must loop while and/or do while will work but they need to be able to go from division to addition etc etc and so forth
- if you use need vector use array instead
- the answers will be output on the screen not a separate file
- please be willing to make changes to the code as to either correct errors or if anything used wasnt learned
- upon successful completion and testing ill add a 3 dollar tip
- any further questions please feel free to ask
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
