PF Lab Report
PF Lab Report
DEPARTMENT OF COMPUTER
SCIENCE
STUDENT DETAILS
• enrolledCourses: This is a slightly bigger list (a 2D array). It means for each of the 10
students, you can list up to 5 courses they are signed up for.
• totalStudents: A simple counter that tells the system how many students are
currently stored.
• courseList: A fixed list of all the courses the university offers (like "CS101," "MATH201,"
etc.).
What Each Part of the Code Does:
The Main Program (main)
• What it Does: This is where the program starts and keeps the main menu running.
• How it Works: It keeps showing the main menu, takes the user's choice, and runs the
correct function. If the input is wrong, it shows an error without crashing. Choosing
"Exit" closes the program properly.