Question: Write the code for the following program in C++, run it for each of the characters specified in the program, and run it also for

Write the code for the following program in C++, run it for each of the characters specified in the program, and run it also for a non-existing character.

Cut and paste your program into a Word document, along with a clear screenshot of the console showing all possibilities. (Can include as many screenshots as needed).

Drop in final project drop box.

Develop a simple calculator program that reads two positive integer numbers a & b and then prompts the user to enter an operation char as follows:

**************************

Calculator operations:

Enter A for addition (a+b)

S for subtraction (a-b)

M for multiplication (a*b)

D for division (a/b)

R for remainder (a%b)

F for factorial of the absolute difference between a and b

W for the power of a to b

Q for square root of average

E. for sum of even numbers in range

O. for sum of odd numbers in range

P for sum of prime numbers in range

V for reversing digits of the larger of a and b (ex: 654 reverses to 456)

X for exit

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!