Structured Programming, switch Statements. Create a flowchart and a C++ solution for each of the following problems:
Write a program that enters two numbers and a character that represents one of four arithmetic operators (+,-,*,/). The input values are printed followed by the result of the operation, or an error message if the character is not one of the defined operator.Output from two sample runs on a MacBook-Pro are provided below.
MacBook-Pro:Chapter3 jaingber$ ./a.out
Enter first number 2
You entered 2
Enter second number 3
You entered 3
Enter desired operation: (*,+,-,/) /
You entered /
2 / 3 = 0.666667
MacBook-Pro:Chapter3 jaingber$ ./a.out
Enter first number 2
You entered 2
Enter second number 3
You entered 3
Enter desired operation: (*, +, -, /) %
You entered %
invalid operator..
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.