subject

3. Write a function simulating a calculator on two integer numbers. The function is going to receive a character “op” representing an operation (+,-,*,/,%,etc), “num1” and “num2”. The function is going to check that the input is valid.
If the input is not valid, the function is going to print a corresponding message to the screen and return 0. Otherwise, if the input is valid, then the function should return the result of the operation. For example:
- for op ‘+’ the function is going to return “num1+num2”.
- for op ‘-‘ the function is going to return “num1-num2”.

c++

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 24.06.2019 01:10
Create a program that will take in a single x and y coordinate as the origin. after the input is provided, the output should be all of the coordinates (all 26 coordinates read from the “coordinates.json” file), in order of closest-to-farthest from the origin.
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
Answers: 2
You know the right answer?
3. Write a function simulating a calculator on two integer numbers. The function is going to recei...
Questions
question
Physics, 12.03.2021 20:20
question
Mathematics, 12.03.2021 20:20
question
Mathematics, 12.03.2021 20:20
Questions on the website: 13722363