Question: Write a C++ program that performs the basic four mathematical operation (addition, subtraction, multiplication, and division) depending on the user's choice input two operands

Write a C++ program that performs the basic four mathematical operation (addition, subtraction, multiplication, and division) depending on the user's choice input two operands from a user and performs the all the Arithmetic Operation. The two operands will depend upon the operator entered by user. The C++ program should have the following commands, function and codes: Arithmetic Operators Note: Logical Operators If and else Statement Be creative and proactive when you are writing the program. UD Sp ED 0 Angk V 24 S Con with 3. You are given following arithmetic equations: X = (A * B ** C)/(D% (E+ F * G)) X = (A % (B+C) / D) * (E / F ** G) Choose any one of the given arithmetic equation and perform the following: a. Give instructions to evaluate the arithmetic equation using 3 address instructions. b. Give instructions to evaluate the arithmtic equation using 0 address instructions. c. Critically analysed the performance obtained when using 3 address instruction and 0 address instructions. d. Evaluate the arithmtic equation using pipeline technique. Analyse pipeline in terms of segments and latches. Note: ** represents Exponentiation operator (EXP) % reperesents modulus operator (MOD) / represents division operator (DIV) * represents multiplication operator (MUL) + represents addition operaror (ADD)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
