Engineering, 23.05.2020 06:59 brie821
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]
Answers: 3
Engineering, 04.07.2019 19:10
Air inially occupying a volume of 1 m2 at 100 kpa, 27 c undergoes three internally reversible processes in series. process 1-2 compression to 500 kpa during which pv constant process 2-3 adiabatic expanslon to 100 kpa process 3-1: constant-pressure expansion to 100 kpa (a) calculate the change of entropy for each of the three processes. (b) calculate the heat and work involved in each process. (c) is this cycle a power cycle or refrigeration cycle?
Answers: 3
Engineering, 04.07.2019 19:10
Analyze the factors that influence the choice between the following pairs of processes to make the products indicated: i) sand casting versus die casting of an electric-motor housing ii) thread rolling versus machining of a bolt for high-strength application. (co3/c5)
Answers: 3
Engineering, 04.07.2019 19:20
Determine the stoichiometric and actual air-fuel ratios and the mole flue gas composition for combustion with 15% excess air for raw indiana, pennsylvania raw coal.
Answers: 3
Engineering, 06.07.2019 03:20
Aparticle moves along a straight line such that its acceleration is a=(4t^2-2) m/s, where t is in seconds. when t = 0, the particle is located 2 m to the left of the origin, and when t = 2, it is 20 m to the left of the origin. determine the position of the particle when t=4s.
Answers: 1
Consider that a system has two entities, Students, Instructors and Course. The Student has the follo...
Social Studies, 04.07.2019 18:30
Computers and Technology, 04.07.2019 18:30
English, 04.07.2019 18:30
Social Studies, 04.07.2019 18:30
Mathematics, 04.07.2019 18:30
Biology, 04.07.2019 18:30
Mathematics, 04.07.2019 18:30
Mathematics, 04.07.2019 18:30
Mathematics, 04.07.2019 18:30
History, 04.07.2019 18:30
Mathematics, 04.07.2019 18:30
Mathematics, 04.07.2019 18:30