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, 21.06.2019 15:00
Marissa is a high school student who wants to be a hydroelectric production manager. she talks to her guidance counselor about her education path, and the counselor says that she needs to get an associate’s degree from a four-year college and will follow that with significant on-the-job training. what error did the counselor make while advising marissa? marissa will not have on-the-job training. marissa also needs a three-year apprenticeship. marissa only needs to attend a two-year college. marissa needs a bachelor’s degree.
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
In the context of an internet connection, llc stands for leased line connection liability limited company local loop complex local loop carrier
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. andre was recently hired by an organization to check for system vulnerabilities. he is supposed to exploit these vulnerabilities and create a report on the extent of damage to which the system was susceptible. what position does andre hold in this organization? a. information security analyst b. information assurance manager c. penetration tester d. network security engineer e. chief information security officer
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
You know the right answer?
3. Write a function simulating a calculator on two integer numbers. The function is going to recei...
Questions
question
Mathematics, 01.06.2020 00:58
question
Chemistry, 01.06.2020 00:58
question
Mathematics, 01.06.2020 00:58
question
Mathematics, 01.06.2020 00:58
question
History, 01.06.2020 00:58
Questions on the website: 13722366