Question: C++ Write a program with correct functions that accepts as input a sequence of numbers and operations in the following format: operation number type number
C++
Write a program with correct functions that accepts as input a sequence of numbers and operations in the following format:
operation number type number number
Example: addition double 23.4 13.7
The operations are addition, subtraction, multiplication, division
Number type is
integer or
double
Each operation and data type are required to have its own functions.
All functions accept as input the values they are to work with
The integer operations will process and print the information inside the function.
The double functions will return the result for main to print.
There is one additional "operation": stop which indicates the end of input to the program. Until then keep processing data
You are to output the following for each input:
Operation: number the_operation_symbol number = result (bold and italics for emphasis here not for display in the console)
Each function should be prototyped at the top of the program and implemented below main.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
