Question: Hello, I need help solving this and I am not sure how to do it: Write C++ code to replicate calculator functionality on integer variables

Hello, I need help solving this and I am not sure how to do it:

Write C++ code to replicate calculator functionality on integer variables using only ++,-- operators. Your code should have following features:

1. Perform addition, subtraction, multiplication and division depending on user choice of operation like we did in lab04.

2. Use only ++ or -- operator in your code. Usage of +,-,*,/ operators are not allowed.

3. Your code should not exit after performing one operation; instead it should run again or exit depending on user choice. After each completed operation. Ask user whether he/she wants to run again or exit the code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!