![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 06.12.2019 04:31 olivernolasco23
Given problemsolution class. use a pointer to object of "problemsolution" class to invoke the "calculatesum" and "print" methods of "problemsolution".
write a function:
void solution(int n1, int n2)
that accepts two integers n1 and n2. the function should instantiate "problemsolution" object with n1 and n2 values and call "calculatesum" and "print" method by creating a pointer to the object of "problemsolution".
input
12 5
output
17
assume that,
n1, n2 and sum are integers within the range [-1,000,000,000 to 1,000,000,000].
given code to work with:
#include
#include
#include
using namespace std;
class problemsolution{
int n1,n2,result;
public:
problemsolution(int n1, int n2){
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 18:40, cyn95xx
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 19:30, alangonsales6232
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 04:30, littledudefromacross
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
You know the right answer?
Given problemsolution class. use a pointer to object of "problemsolution" class to invoke the "calcu...
Questions in other subjects:
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/fizika.png)
Physics, 30.04.2021 17:30
![Konu](/tpl/images/cats/mat.png)
Mathematics, 30.04.2021 17:30
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 30.04.2021 17:30
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/biologiya.png)