Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions

Question

State the uses of job description.

Answered: 1 week ago

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago

Question

3. What are potential solutions?

Answered: 1 week ago