REPORTS.md· admin options 12 and 13
Reports & statistics
Two console reports for administrators, both computed from each course's enrolledStudents list. The output below is what they print for the sample data.
option 12
Enrollment statistics#
Admin option 12 calls dataManager.viewEnrollmentStatistics(): one line per course, a running total, and whether any course is open.
admin › 12---------Enrollment Statistics---------
Course: Programming II (CS102) - Enrolled: 2
Course: Discrete Mathematics (MATH201) - Enrolled: 1
Course: Data Structures (CS210) - Enrolled: 0
Course: Technical Writing (ENG101) - Enrolled: 1
Course: Physics I (PHYS101) - Enrolled: 2
Total enrolled students across all courses: 6
Open courses available: YesSeats taken / capacity
option 13
Most popular course#
Admin option 13 calls dataManager.generateReports(). It keeps the first course with the highest count, so a tie goes to the course listed first.
admin › 13---------Enrollment Report---------
Most popular course: Programming II (CS102) - Enrolled: 2.Limitations#
- Console text only: no charts and no file export
- No history and no comparison across semesters
- Dropped students are still counted, because dropping does not update the roster