Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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 cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions