Question: C++ program Operands The operands will be specified as integer numbers, so you must declare the appropriate data types. If your program is unable to

C++ program
Operands The operands will be specified as integer numbers, so you must declare the appropriate data types. If your program is unable to input valid data from the user, output the following error prompt: "Invalid left operand." or "Invalid right operand." Every operation will require two operands except for the "absolute value." Enter left operand: 77 Enter operation: B Result =77 Acalc Enter left operand: ZAMBY Invalid left operand. ./ calc Enter left operand: 22 Enter operation: \& Enter right operand: 13 Unknown operation. Restrictions You must use if statements to error check the user's input, and you must use mutual exclusion where applicable (i.e., else if and/or else). You must use a SWITCH statement when determining which operation to perform. Your default case must be used to determine if an invalid operation was pecified. . You must not duplicate code. If you notice that you're writing the same statement, you need to rethink the flow of your code. (If you are following \#1 and 2 , this shouldn't be an issue.) You may not call any math functions (if you know how - i.e. don't call the absolute value function). . Comments and good formatting are required
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
