Question: Code in c++ please 2.22 LAB: Student class In the Student.cpp file and Studenth file, build the Student class with the following specifications . Private



2.22 LAB: Student class In the Student.cpp file and Studenth file, build the Student class with the following specifications . Private data members string name - Initialized in default constructor to Louie double gpa - Initialized in default constructor to 1.0 Default constructor Public member functions SetName() - sets the student's name GetName() returns the student's name SetGPAO) - sets the student's GPA GetGPAO-returns the student's GPA Exif a new Student object is created the default constructor sets name to Louie' and gpa to 1. The output of GetName() and GetGPAO) before and after calling SetName('Felix") and SetGPA(3,7) Louis Tolix/3.7 AT LAD 0 / 10 LAB ACTIVITY 2.22. 1. LAB: Student class Current file main.cpp Load default template 1 include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
