Using C Programming: Each student in the university may take a different number of courses, so the registrar has decided to use a linked list to store each student’s class schedule and to use an array of structures to represent the whole student body. A portion of this data structure follows. The records show that the first student (array element 0, id 1111) is taking Section 1 of CIS120 for 3 credits and Section 2 of HIS001 for 4 credits; the second student (array element 1, id 1234) is not enrolled, and so on. Define the necessary data types for creating this structure. Provide operators for creating the original array of student ID numbers, inserting a student’s initial class schedule, adding a course, and dropping a course. Write a menudriven main function to use this structure. Menu-driven main function can be something like this: After each operation that the user selects, it will show a menu and will wait for the user’s input. Such as: 1-Add course, 2-Drop course, 3-Insert initial class schedule and 4-Exit. When one menu is selected, the program should prompt for necessary inputs to accomplish that operation
Using C
Each student in the university may take a different number of courses, so the registrar
has decided to use a linked list to store each student’s class schedule and to use an array
of structures to represent the whole student body. A portion of this data structure
follows.
The records show that the first student (array element 0, id 1111) is taking Section 1 of
CIS120 for 3 credits and Section 2 of HIS001 for 4 credits; the second student (array
element 1, id 1234) is not enrolled, and so on.
Define the necessary data types for creating this structure.
Provide operators for creating the original array of student ID numbers, inserting a
student’s initial class schedule, adding a course, and dropping a course. Write a menudriven main function to use this structure. Menu-driven main function can be something
like this: After each operation that the user selects, it will show a menu and will wait for
the user’s input. Such as: 1-Add course, 2-Drop course, 3-Insert initial class schedule and
4-Exit. When one menu is selected, the program should prompt for necessary inputs to
accomplish that operation
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images