Question: This project you are to read in a comma separated values file (CSV) composing of student names, student gender, gpa, faculty name, faculty gender and
This project you are to read in a comma separated values file (CSV) composing of student names, student gender, gpa, faculty name, faculty gender and faculty research area. Load these values in the appropriate sets , e.g studentSet, studentGenderSet,gpaSet,facultySet, faculty genderSet and reasearchSet. From the sets, create class instances of Student and Faculty. For example one instance of Student will have the attributes name- John, gender-M, gpa - 3.5. An instance of Faculty will have the attributes name-Mike, gender - M , research - Database. Collect the list of student instances and the list of faculty instances. Iterate over the list and print out all the attributes. Lastly using static member variables print out the number of Male students and the number of Female students and calculate the average gpa of the students.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
