Question: - (4 pts): Write a source file nanhid M01.cpp that takes an operation followed by two operands and outputs the result. For example: + 100

- (4 pts): Write a source file nanhid M01.cpp that takes an operation followed by two operands and outputs the result. For example: + 100 3.14 103.14 V 4.2 = 2 o Read the operation into a string and use an if-statement to figure out which operation the user wants eg if (operation=="+") .. else if(...) Read the operands into variables of type double Do not allow the user to divide by zero. Do not use a loop, just read one set of inputs and then exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
