Answered step by step
Verified Expert Solution
Question
1 Approved Answer
It is C++ and I am sure the part how do I get the operator and use it as an real operator. Not sure how
It is C++ and I am sure the part how do I get the operator and use it as an real operator. Not sure how
Write a program that does one calculation of a 4-function calculator Ask the user for 2 number and then an operator symbol + * or/. Do that operator on the numbers and print the result. Note: you should use a switch statement based on the single character which is the operator. Note: detect and complain when the user tries to divide by O. See submit mode for details 1 #include iostream 3 using namespace std; 4 5 int main ) double first, second ; char op = '0'; cout > first; cout second; cout > op; 21 coutStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started