Answer to Question #241412 in C++ for Laiba Noor

Question #241412
Write a class marks with three data members to store three marks. Write three
member functions, set_marks() to input marks, sum() to calculate and return the sum
and avg() to calculate and return average marks.
1
Expert's answer
2021-09-24T00:03:54-0400
#include<iostream>
using namespace std;
class marks {
 public :
int a;
int b;
int c;

Setmarks()
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS