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
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment