TT2 - Linked Lists
TT2 - Linked Lists
You will have one week (or 7 days) to complete the remaining exercises and
upload your files to the “Labwork X” assignment in Google Classroom.
Compress all code source files in a zip file and rename it as FULLNAME-ID-
Lab#no.zip (e.g NguyenVanA-BI10-070-Lab1.zip). Save your files according
to the exercise number i.e Ex1.cpp, Ex2.c, etc. Incorrect filenames will result
in no score for the respective exercises.
Only code source files (.c or .cpp) should be in the zip files. Other files (.exe,
.o) MUST be removed from the zip file.
- Copy/Paste from any source is not tolerated. Penalty will be applied for late
submissions.
NOTE: You must follow the guide. Incorrect zip file names, zip files containing
other files (.exe), and copy/paste lead to heavy penalties.
Implement and test the program in C/C++ using an Array-based List (Static or
Dynamic) to manage this unbounded integers:
Exercise 2: Assume that a railway train has N railroad cars attached together
such as car1 , car2 , car3 , ..., carN . A train can be considered as a list and each car
corresponds to a node in this list.
1
Each car carries a maximum capacity of passengers (int type) and has an id
(char type). Both variables are user-defined values.
Implement a program in C/C++ using Linked List to manage the train and test all
functions.