Exercises - Week 5




1 Student management
Write a program to manage students enrolled in a University. You are encouraged to use (adapting as needed) the
Sequence ADT developed in Week 4.
Discuss your proposed solution in terms of complexity.
Here is a proposed structure for the program.

1a Students
The program should allow to manage a list of students. A student has a numeric ID, a name and family name.
There should be functions to add a student, delete a student, retrieve a student given his ID, print all students,
order students by ID, order students by Family name.

1b Courses
The program should allow to manage a list of courses. A course has a numeric ID, and a name.
There should be functions to add a course, delete a course, retrieve a course given its ID, print all courses.

1c Students and courses
The program should allow to define what students follows what course. In general a student can follow many courses and
a course is followed by many students. The program should allow printing all courses followed by a student, given his ID,
and students following a course, given the ID of the course.