Answer to Question #52335 in C++ for Stanley

Question #52335
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
Expert's answer

Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be the first!

Leave a comment

Ask Your question

New on Blog