-Create a program so a user can add a student id number (all
numbers, 10 digits, the integer and range is decided by the
programmer) one by one, and the same student id number cant be
saved twice (duplicate)
-When there is 10 student id number listed, divide them into 3
groups randomly. Then print the divided groups list
-Store the data and the connections into an irregular linked list,
which every node has a variable that is:
1. Student Id number or is called (NPM)
2. ptrA (pointer to a node which is storing the
next student id number
3. ptrB (pointer to a node which is storing the
other student id number in the same group
-Make a user-friendly menu to try all the features
-Everytime a list is printed, the format must follow this
example:
node 1 (address=A1):
NPM: 1001
ptrA: A2
ptrB: A2
node 2 (address=A2):
NPM: 1002
ptrA: A3
ptrB: A3
node 3 (address=A3):
NPM: 1003
ptrA: A4
ptrB: null
node 4 (address=A4):
NPM: 1004
ptrA: A5
ptrB: A5
node 5 (address=A5):
NPM: 1005
ptrA: A6
ptrB: A6
node 6 (address=A6):
NPM: 1006
ptrA: A7
ptrB: null
node 7 (address=A7):
NPM: 1007
ptrA: A8
ptrB: A8
node 8 (address=A8):
NPM: 1008
ptrA: A9
ptrB: A9
node 9 (address=A9):
NPM: 1009
ptrA: A10
ptrB: A10
node 10 (address=A10):
NPM: 1010
ptrA: null
ptrB: null
-Make a menu so that a user can see who's on their group by using
the user's NPM (so the input is NPM, and the output is a list of
NPM, or "The NPM is not on any list"
Note: Student ID number is 'NPM'
-Create a program so a user can add a student id number (all numbers, 10 digits, the integer and range is decided by the
-
- Posts: 43759
- Joined: Sat Aug 07, 2021 7:38 am