Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data 29th British National Conference On Databases Bncod 2013 Oxford Uk July 2013 Proceedings Lncs 7968

Authors: Dan Olteanu ,Georg Gottlob ,Christian Schallhart

2013th Edition

3642394663, 978-3642394669

More Books

Students also viewed these Databases questions

Question

What are the objectives of Human resource planning ?

Answered: 1 week ago

Question

Explain the process of Human Resource Planning.

Answered: 1 week ago