Question: using namespace std; c++ QUESTION 1: Each student at PSUT has an id, a name, a gpa, and a major. A student can be a

 using namespace std; c++ QUESTION 1: Each student at PSUT has

using namespace std;

c++

QUESTION 1: Each student at PSUT has an id, a name, a gpa, and a major. A student can be a bachelor student or a master student. Bachelor students are required to do a graduation project and training at some company. Master students are required to do a thesis. Bachelor student rating is different from Master student rating. Given the following student class: class Student { public: Student(); // sets all info too or " Student(int i, float g, string n, string m); string GetMajor(); void Set ID(int id) ; void SetGPA(float gpa) ; void setName(string name) ; void SetMajor(string major); virtual string GetRating() = 0; virtual bool IsBachelor() = 0; virtual void Print(); // print all information protected: float GetGPA() { return gpa; } private: int id; float gpa; string name; string major; }; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!