Lab 4 - OOP2
Lab 4 - OOP2
(Semester 1, 2024/2025)
Lab #4: OOP2
The main aim of the lab is to implement advanced OOP problems using Python
Programming Language.
=============================================================
1) demSoMon(int loai) in GiangVien class to count the courses that a lecturer can
teach with a given type
2) timGiangVienDayNhieuTinChiNhat() in Khoa class to find a lecturer who can
teach courses with the highest total number of credits.
3) thongKeMonHocTheoLoai() in Khoa class to statisticize courses by type, with key
being the type of a course and the value is a list of corresponding courses.
4) timMonHoc(String tenGiangVien, String loai) in Khoa class to filter courses
based on the lecturer’s name and course type. The results should be sorted by
the name of each course.
Task 2. For a given class diagram in the following figure (Fig. 2):