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 23:30
Which words or phrases from this passage best demonstrate logos?
Answers: 1
question
English, 22.06.2019 01:00
Which sentence is correct? laura lent me her copy of cooking weekly so i could use a recipe. i enjoy doing crossword puzzles from the new york times. herman melville wrote the novel “moby d i ck.” maggie loves to read the smithsonian magazine.
Answers: 1
question
English, 22.06.2019 04:30
How does visiting the place of the gods affect the narrator? a. he discovers that it is unwise to have an inquiring mind b. he learns that there is nothing supernatural to fear in the destroyed city c. he renounces everything he learned from the priests and his father d. he understands that the past has nothing of interest for people of the present
Answers: 1
question
English, 22.06.2019 08:30
What is one unique way in which the medium of tv can affect a message? a. by allowing the audience to review information and reflect on it b. by limiting the amount of coverage any one topic gets c. by using images and sound to give information context d. by reporting some types of information but ignoring other types
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
English, 26.02.2021 18:30
question
Mathematics, 26.02.2021 18:30
question
Mathematics, 26.02.2021 18:30
question
Mathematics, 26.02.2021 18:30
question
Mathematics, 26.02.2021 18:30
question
Mathematics, 26.02.2021 18:30
Questions on the website: 13722363