Question: Object oriented C++ Please help take your time I will repost as many times as u need but please make it in one answer i





Object oriented C++ Please help take your time I will repost as many times as u need but please make it in one answer i dont want to have 5 different codes from 5 different ppl on chegg and thank you :D
3.1. header files *.h: for class interface (one for each class) 3.2. source files *.cpp: for class implementation (one for each class) 3.3. main.cpp: main program (only one) 3.4. guard your header files against multiple inclusions The member functions that do not modify data members should be declared and defined as const Write any type of constructors, setters, or getters your program might need. You are asked to implement a class hierarchy for students in a university. There are two categories of students, Bachelor and Master. You need to implement a base class Student, and two derived classes, one for the Bachelor students and another for the Master students. Assume that each student in the university has a studenti, a name, a gpa, and a major. 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. Implement the following Student class such that: 1. the default constructor will initialize the student ID to 0, name to "NA", gpa to 0, and major to "NA". 2. the parameterized constructor will use the received arguments to initialize the class data members. 3. implement the setters appropriately 4. implement getMajor() function to return the major of a student 5. make the member functions GetRating() and IsBachelor() as pure virtual functions 6. implement the printStudent() function to print all the attributes in the Student class. class Student public: Student(); Student (int i, float g, string n, string m); void SetID(int id) ; void Set GPA (float gpa); void Set Name (string name); void Set Major (string major); string GetMajor(); string getRating (); bool IsBachelor(); virtual void printStudent(); protected: float GetGPA(); private: int studentID; string name; string major; float gpa; ); Define a new class called Bachelorstudent. This class should: 1. Publicly Inherit (derive) class Student 2. include two new string private data members a. project_title b. training company 3. Define a parameterized constructor to initialize all member variables (id, gpa, name,major, project_title, training_company) 4. Override getRating function such that it returns Excellent for GPA >=84, Very good for [76 to =90, Very good for [84 to
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
