//CmpE46Application FILE //LAb9~ // Student.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #ifndef STUDENT_H #include // TODO: reference additional headers your program requires here #include using namespace std; //the maximum number of lab scores const int MAXID = 7; const int MAXEMAIL = 31; const int MAXLABS = 5; class Student { private: string firstName; string lastName; char email[MAXEMAIL]; double labScores[MAXLABS]; char id[MAXID]; public: Student(); //sets the student's first and last names void setName(string fname, string lname); //gets the student's first and last name combined with a space inbetween string getName(); //sets the id of student void setId(char theId[]); //sets the email address void setEmail(char theEmail[]); //************************************************** //NEW //gets the email address and returns it as a string string getEmail(); //************************************************** //sets a lab score void setScores(double theScores[]); //************************************************** //UPDATED //gets the average of all the lab scores double getAverage() const; //************************************************** //Gets data from user to set private variables friend istream& operator >>(istream& ins, Student& s_object); //Output required data friend ostream& operator <<(ostream& outs, Student& s_object); }; #endif