The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 3 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
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
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly