Q&A Discussions
Average Score
0 Votes
1 Answeri need c++ program does EXAMPLE: If the user entered the #’s: 999, 90,78,82,and 999
the output would be
AVERAGE = 250/3 = 83.3 AVERAGE WITH LOWEST DROPPED = 172/2 = 86.0
AVERAGE WHERE HIGHEST COUNTS TWICE =340/4 = 85.0
NOTE: Validate the input as being a plausible test score and require the user to reenter when not plausible.
1 Vote
7 AnswersProgrammers out there
1 Vote
2 Answerscan anyone plz explain me this program step by step?#include <iostream>
using namespace std;
class MyClass {
public:
int var;
MyClass() { }
MyClass(int a)
: var(a) { }
MyClass operator+(MyClass &obj) {
MyClass res;
res.var= this->var+obj.var;
return res;
}
};
int main() {
MyClass obj1(12), obj2(55);
MyClass res = obj1+obj2;
cout << res.var;
}I am not getting the part inside operator+
0 Votes
8 AnswersReal life programming
2 Votes
2 Answershow to make website
-1 Vote
3 AnswersHot today
Safety Deposit Boxes
2 Votes
__str__ in Python...
0 Votes
Advice me
1 Votes
Input sand outputs
0 Votes
Sololearn
0 Votes
Start
1 Votes
how to use ardino uno???
0 Votes