Declare two classes: Class and Student. Add data members for the name, the grade (integer as 0-F, 1-D, 2-C, 3-B, and 4-A), and the credit hours to the class Class. Add all proper constructors (at least two) and accessor functions.
For the class Student, add the name (string) and Total Grade Points (integer). Overload operator + that will update the Total Grade points for the student (add the Class's grade to the total grade points)
1
Expert's answer
2014-03-24T10:54:14-0400
#include <iostream> #include <string> using namespace std;
Comments
Leave a comment