Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Implement a class: a. A Student class with a private nested GPA class and three data members: b. Use c++11 member initialization to set
1. Implement a class: a. A Student class with a private nested GPA class and three data members: b. Use c++11 member initialization to set the default name and major to c. Implement multiple constructors with constructor delegation name, major, grade ( is of type GPA) "blank" and GPA to 0.0 for all objects d. GPA class: 1) All appropriate accessor and mutator functions 2) Implement a getLetterGrade function which returns a letter based upon the GPA as such:3.5 A, -2.5 B, -1.5 C, -1 D, all else F e. Student class: 1) All appropriate accessor and mutator functions 2) Apply the const member function modifier as needed 3) Implement a display member function that prints object data as demonstrated in the output example Instantiate two objects and display their data as such: Output Example Name: John Williams Major: Music GPA: 4.00 Grade: A Name: Isaac Asimov Major: Englislh GPA: 3.53 Grade: B
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started