reset password
Author Message
Arnav98
Posts: 48
Posted 19:20 Sep 18, 2017 |

Can someone explain the following to me more precisely ?

"Write a University class that maintains lists of Students, Courses, and FacultyMembers and has an instance method containing a menu that provides ways to list them and to create them and add them to the list. Provide ways to delete Students and FacultyMembers and for Students and FacultyMembers to add and delete Courses from their course schedules. However, you do not need to provide a way to delete a Course from the list of Courses. Do not create a new Course when a Student adds or when a faculty member is assigned to teach; let the user choose a Course from the list."

What does it mean by "to create them" ? If it means creating a student, faculty member or course object then what parameters would we ask from the user since for example student has CIN, courses taken, name, address etc.

Also if someone already finished this lab, can you share pics of the output or the pics of the console showing what all it asks and what results it gives.

jhurley
Posts: 207
Posted 19:34 Sep 19, 2017 |

yes, get the data from input and either use it as the parameters to a constructor in Student or use a no-parameter constructor in Student and then use the data as parameters in calls to setter methods.  There is code similar to this in the college example in the lecture notes.