Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write in c++ language Consider that a system has two entities, Student and Course. The student has the following properties: student name, SSN, address and
Write in c++ language
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 student1 and student2 are two objects of type student, write a code that enables you to write: if (student1.isequal (student2)). Where student1, 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
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