Engineering
Engineering, 23.05.2020 07:01, nghtcll

Write in c++ program

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.

Implement the above system taking into account the following requirements:

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

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]

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]

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]

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]

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

answer
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 08:10, doggo242
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
image
Engineering, 04.07.2019 18:20, DroctorWellsfan
Inspection for bearing condition will include: (clo4) a)-color b)-smell c)-size d)-none of the above
Answers: 1
image
Engineering, 04.07.2019 18:20, 3076850
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i. e., a violation of one statement leads to the violatio the other statement)
Answers: 2
image
Engineering, 06.07.2019 02:30, emiller6462
Plot schematically the tensile stress versus strain curves for a typical thermoplastic material at a temperature below its glass transition temperature (tg and at a temperature above its tg, respectively. do the same for a typical thermosetting material. list in a table any differences or similarities between the two materials at t> tg and t < tg, respectively, and relate them to the structures of the two types of polymers
Answers: 3
Do you know the correct answer?
Write in c++ program

Consider that a system has two entities, Students, Instructors and C...

Questions in other subjects:

Konu
World Languages, 13.10.2019 06:30
Konu
Biology, 13.10.2019 06:30