Implement a class Student. A student has a name and a GPA. Supply an appropriate constructor and functions getName(), addGrade(string grade), and getGPA(). Also supply a member function read() that will read a student’s name and a sequence of grades ended by an empty string from the keyboard. You may store the number of grades the student obtained, but not a collection of grades or their numeric equivalents. Specify grades as objects of class Grade. Supply a constructor that constructs a grade from a string, such as “B+”. You will also need a member function that translates grades to their numeric values (for example, “B+” becomes 3.3). Supply a main function to test the Student class. Program each class in separate header and implementation files
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment