Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Note : I need this question in C++ language Consider that a system has two entities, Student and Course. The student has the following properties:

Note : I need this question 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 students 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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

=+Are you interested in working on global teams?

Answered: 1 week ago

Question

=+Do you want to work from home?

Answered: 1 week ago

Question

=+ What skills and competencies will enable someone

Answered: 1 week ago