Uploaded by numair69xd

Data Structures Task

advertisement
Spring 2021
09-04-2021
Data Structures & Algorithm (LAB)
Lab Task
Total points = 6
1. To submit your assignment in Moellim before due date, when due date is passed
assignment link will be disabled automatically.
Q.1. Simulate a railway data using linked list. In this task you must make node that
represent a train coach, each coach has its number, total passenger capacity, and no of
passengers.
write functions for the following purpose;
i. insert coach with id, number of passengers.
ii. insert coach at start
iii. insert coach at nth position
iv. remove coach
Note: implement classes in separate files.
Download