subject
English, 24.05.2020 16:57 Yoma321

Consider that a system has two entities, Students, Instructors and Course. The Student has the following properties: student name, ID, and GPA. The instructor has the following properties: name, ID, Salary and department name. Finally the Course has Name, ID , Instructor and array of 3 students.
c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++ c++

Implement the above system taking into account the following requirements:

1- Define array of 4 Courses with instantiating all its properties.[5 points]

2-Assume that instructor1 and instructor2 are two objects of type Instructor, write a code that enables you to write: if (instructor1.isequal (instructor2)). The statement is true if the two objects have the same name and ID. [3 points]

3-Define a function with the following signature void PrintCSalary(Course []), The function prints the index and the name of the course that has Instructor with Max Salary. [3 points]

4-Define a function with the following signature void PrintMaxGPA(Course []), The function prints the index and the name of the course that has Max average of its Students GPA.[3 points]

5-Define a function that has the following signature Instructor * getInstByID(Course [], int id). The function returns a pointer to one of the instructors in the array of courses, who has the same id (sent to the function).[3 points]

6-Write a getCourseList(int ID) function that returns a list of courses that the student registered in.[3 points]

ansver
Answers: 2

Another question on English

question
English, 21.06.2019 16:40
Select the correct answer. which theme is evident in this excerpt from alfred lord tennyson’s narrative poem “the charge of the light brigade”? “forward, the light brigade! ” was there a man dismayed? not though the soldier knew someone had blundered. theirs not to make reply, theirs not to reason why, theirs but to do and die. into the valley of death rode the six hundred. a. the folly of ambition and greed b. the inability of humans to face death c. the heroism of unquestioning sacrifice d. the futility of obedience
Answers: 2
question
English, 21.06.2019 22:00
Read this excerpt from leah missbach day's foreword to wheels of change.bicycles have long played a role in my life. as a young woman, i rode one year-round before i had a car. but it was later in adulthood that the bicycle became more than a source of transportation for me. the bicycle actually began to truly shape the way i saw the world.what is the author's purpose for including this in the foreword?
Answers: 1
question
English, 21.06.2019 23:10
Can someone me with an english language arts assignment? i need someone who's an expert or good at english language ! i need correct answers only !
Answers: 2
question
English, 21.06.2019 23:30
Complete the paragraph about imperialism
Answers: 2
You know the right answer?
Consider that a system has two entities, Students, Instructors and Course. The Student has the follo...
Questions
question
Mathematics, 18.09.2019 19:30
question
Mathematics, 18.09.2019 19:30
Questions on the website: 13722363