Design a program of multilist to host student-class data. The multilist contains 3000 classes and 10000 students. Each node in the multilist should store { student number, class number, grade} in the ranges of {(1-10000), (1-3000), (0-100) } respectively. The first-row is student list indexing student numbers. The first-column nodes is class list indexing class numbers. Such nodes can be initiated when a student-class pair is input.
Input data
1 Input from console by typing (student number, class number), e.g., (4, 130), which means student 4 takes course 130. the program will insert a node to the multilist and connect it horizontally and vertically in the order of class number and student number with the nodes already there by pointers.
Print options for output student list or class list as follows.
2. Print such class lists for all non-empty classes (entire multilist), e.g.,
class 1: students 3, 4, 6, ....;
class 34: students 5, 98, 123, ....;
....................
3 Print such student lists for all active students who take courses (entire multilist), e.g.,
student 1: classes 355, 389, 991;
student 2: classes 5, 6, 98;
student 89: classes 65, 456