Question: C++ H omework question Consider that a system has two entities, Student and Course. The student has the following properties: student name, SSN, address and

 C++ Homework question Consider that a system has two entities, Student

C++ Homework question

Consider that a system has two entities, Student and Course. The student has the following properties: student name, SSN, address and GPA. Similarly, the course has the following properties: course name, course number, credit hours and a set of students who are currently registering on the course. Implement the above system taking into account the following requirements: 1. In course, the number of students that are registering this course is decided at the time when instantiating the course object. [2 marks] 2. Assume that student and student2 are two objects of type student, write a code that enables you to write: if (student1.isequal (student2)). Where studenti, student12 are student objects. The statement is true if the objects have the same address and name. [2 marks] 3. Write a getStudentpByAddress method in class course that takes a student's Address and returns a list of all students who have the same address. [3 marks] 4. Write a getStudentByGPA(double GPA_Student) method in class course that takes a GPA and returns a list of Students who have GPA above the received GPA_Student.[3 marks]

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!