Question: using c++ Exercise: Write a program which contains a class called CpE (which is our Computer Engineering Department). CpE is interested mainly in monitoring students'

using c++

using c++ Exercise: Write a program which contains a class called CpE

Exercise: Write a program which contains a class called CpE (which is our Computer Engineering Department). CpE is interested mainly in monitoring students' registration in the department courses. Write a driver program to test your class (make sure to test all the member functions inside your class). The private data members of this class include the following: - An array of objects from class Student which is called DL and contains all students enrolled in the Digital Logic course. The size of this array is 5 . student - An array of objects from class Student which is called Training and contains all students that are able to register for practical training at the next summer semester. The size of this array is 3 . - Static data member that counts the total number of students enrolled in all courses in the department. Provide a constructor function that enables an object of this class to be initialized when it is declared. Also define a destructor for this class which frees all the reserved memory in CpE class. + Class Student includes the following private data members: - String variable that contains the name of the student. - Integer variable which contains the student ID. - Integer variable which contains the student grade in the course. - The student's GPA. Class Student should provide a default constructor for all private data members. Add the necessary public member functions to this class based on your needs (set and get functions). Returning to class CpE, for this class you should provide the following public member functions: a) AddStudentDL: add a student to the DL course to a specified location in the DL array (i.e. takes the student object and the array index as parameters). b) AddStudentTraining: takes a student as a parameter and add it to the Training array (at a specified location) in case that his/her GPA is greater than or equal to 3.00 points. Otherwise, this function will print a message on the screen that you cannot allow this student to register for practical training. c) isRegistered: takes the student ID as argument and tell you in which course this student is enrolled (if it is registered) using cout statements in the same function. d) avgGradesDL: returns the average grades of all students in the DL courses. e) avgGPATr: returns the average GPA of all students registered in the training course. Write a driver program to test your class (make sure to test all the member functions inside your class). Test all functions in both classes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!