Question: Task-2: Write a menu-driven C++ program that performs the following according to users choice: 1. Add 2. Subtract 3. Multiply 4. Quit The program should
Task-2: Write a menu-driven C++ program that performs the following according to users choice: 1. Add 2. Subtract 3. Multiply 4. Quit The program should ask the user to choose an option between one and four, and then perform the desired calculation. For instance, if user specifies one, then the program requests from the user two values, calculates the summation of them, and finally displays the result obtained to the console screen. Hint: Use switch-case statements for the menu!
Task-3: Rewrite the program written for Task-2 in which the user can enter symbols +, -, *, and . for quitting.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
