![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 21.10.2021 14:00 apere655
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](/tpl/images/cats/User.png)
Answers: 3
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 04:10
Write a program that reads a set of floating-point values. ask the user to enter the values, then print • the average of the values. • the smallest of the values. • the largest of the values. • the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 09:30
An output peripheral interacts with or sends data to the computer provides information to the user from the computer receives data from the computer and sends it to a modem stores data processed by the computer
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 09:50
The mips architecture has a register set that consists of 32-bit registers. is it possible to design a computer architecture without a register set? if so, briefly describe the architecture, including the instruction set. what are advantages and disadvantages of this architecture over the mips architecture?
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 26.06.2019 03:30
Aobject is used for displaying the results of a question based on stored data. a.query b. report c. table d. form
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](/tpl/images/cats/mat.png)
Mathematics, 10.12.2020 20:40
![question](/tpl/images/cats/mat.png)
Mathematics, 10.12.2020 20:40
![question](/tpl/images/cats/istoriya.png)
History, 10.12.2020 20:40
![question](/tpl/images/cats/mat.png)
Mathematics, 10.12.2020 20:40
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 10.12.2020 20:40
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/fr.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 10.12.2020 20:40
![question](/tpl/images/cats/mat.png)
Mathematics, 10.12.2020 20:40
![question](/tpl/images/cats/mat.png)
Mathematics, 10.12.2020 20:40
![question](/tpl/images/cats/mat.png)
Mathematics, 10.12.2020 20:40
![question](/tpl/images/cats/en.png)
English, 10.12.2020 20:40
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 10.12.2020 20:40
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 10.12.2020 20:40