Class Student string name vector coursesTaken double compute
Class Student {string name; vector coursesTaken; double computeMajorGpa() const; public: Student(const string &n;);//constructor-assigns n void printMajorGpa() const;//prints student\'s CS and void addCourse(const Course &c;);//adds a course to courses}; int main() {//beginning of main A correct answer will earn 10 out of 10 points. A wrong attempt will cost 1 point Student(mickey):: (const string &n;){Student (string Mickey Mouse);} ifstream courseFile;
Solution
//declaring new variable named mickey of type student //
// and give constructor the string Mickey mouse
String s = \"Mickey mouse\"; //declaring string..
Student mickey = new Student(s);//declaring new variable named mickey of type student and giving string Mickey mouse to constructor
ifstream courseFile;//declaring input filestream
