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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started