Question: example in C++ 2. Write an excerpt of a program as well as draw diagram to represent the execution of swapping between the first number

example

in C++
2. Write an excerpt of a program as well as draw diagram to represent the execution of swapping between the first number and the second number using pointer. (2.5 marks) Calculator program: +: Add -: Subtract *: Multiply : Divide Enter first number: 5 Enter second number: 3 Enter operation: / Operation display: 5 / 3 = 1.66667 Do you want to repeat the whole process? (Y/N): y Calculator program: + Add -: Subtract *: Multiply /: Divide Enter first number: 8 Enter second number: 9 Enter operation: Operation display: 8 - 9 = -1 Do you want to repeat the whole process? (Y/N): n Process exited after 34.72 seconds with return value o Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
