Question: just need to fill in the comments Lab #3 - Classes/Constructors Part I - Fill in the missing parts of this code #include #include #include

 just need to fill in the comments Lab #3 - Classes/Constructors
Part I - Fill in the missing parts of this code #include
#include #include using namespace std; class classGrades public: void printlist() const; void
just need to fill in the comments

Lab #3 - Classes/Constructors Part I - Fill in the missing parts of this code #include #include #include using namespace std; class classGrades public: void printlist() const; void inputGrades (ifstream 6); double returnAvg() const; void setName (string); void setNum Students (int); classGrades(); classGrades (int); private: int gradeList[30]; int numStudents; string name; int main() classGrades intro(5), intermediate; intro.printlist(); ifstream infile; infile.open("data.txt"): if (!infile) cout > gradeList[1]; double classGrades::returnAvg ( const int i; double average; double sum = 0; //write code to return the average void classGrades::setName(string n) name - ni void classGrades::set NumStudents (int x) numStudents = x; classGrades::classGrades () int i name - numStudents = 30; for (i = 0; i #include #include using namespace std; class classGrades public: void printlist() const; void inputGrades (ifstream 6); double returnAvg() const; void setName (string); void setNum Students (int); classGrades(); classGrades (int); private: int gradeList[30]; int numStudents; string name; int main() classGrades intro(5), intermediate; intro.printlist(); ifstream infile; infile.open("data.txt"): if (!infile) cout > gradeList[1]; double classGrades::returnAvg ( const int i; double average; double sum = 0; //write code to return the average void classGrades::setName(string n) name - ni void classGrades::set NumStudents (int x) numStudents = x; classGrades::classGrades () int i name - numStudents = 30; for (i = 0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!