In this project, you will implement a system, that is based on Linked List, to assign passengers to various busses to help them commute based on their scheduled times. Each student (ie., passenger) has the following information: traveler ID (the student ID), travelling date, travelling time, from, and to (destination). Following is an example of the input file called (passengers.txt):

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Please Explain your work and this should be in "C Language" and this is a data structure subject

Thank you!

In this project, you will implement a system, that is based on Linked
List, to assign passengers to various busses to help them commute
based on their scheduled times.
Each student (ie, passenger) has the following information: traveler
ID (the student ID), travelling date, travelling time, from, and to
(destination). Following is an example of the input file called
(passengers.txt):
1190001#18042022#14:00#Birzeit#Nablus
1190112#18042022#11:00#Beit Rima#Birzeit
1190554#19042022#13:00 #Birzeit#Atara
1190201#20042022#14:00#Birzeit#Ramallah
Another file containing the registered bus lines (busses.txt) contains:
a bus number, date, departure time, from, to, price of ticket, and
capacity. Example of the input file:
1#18042022#14:30#Birzeit#Ramallah#6#15
2#18042022#11:45# Beit Rima#Birzeit#6#1
13#19042022#14:30# Birzeit#Atara#6#20
53#20042022 #14:00 #Birzeit#Nablus#6#7
page “1"
Transcribed Image Text:In this project, you will implement a system, that is based on Linked List, to assign passengers to various busses to help them commute based on their scheduled times. Each student (ie, passenger) has the following information: traveler ID (the student ID), travelling date, travelling time, from, and to (destination). Following is an example of the input file called (passengers.txt): 1190001#18042022#14:00#Birzeit#Nablus 1190112#18042022#11:00#Beit Rima#Birzeit 1190554#19042022#13:00 #Birzeit#Atara 1190201#20042022#14:00#Birzeit#Ramallah Another file containing the registered bus lines (busses.txt) contains: a bus number, date, departure time, from, to, price of ticket, and capacity. Example of the input file: 1#18042022#14:30#Birzeit#Ramallah#6#15 2#18042022#11:45# Beit Rima#Birzeit#6#1 13#19042022#14:30# Birzeit#Atara#6#20 53#20042022 #14:00 #Birzeit#Nablus#6#7 page “1"
Your application should do the following:
1. Read the drivers file and load it into an array, then read the
second file (passengers) which should be added to the busses in
a línked list (array of linked lists). Before assigning passengers
to busses you should make sure that:
a. Each passenger is added to a bus based on the date and
departure time. Meaning, each passenger should match
the bus based on his/her travelling time and the
departure time of the bus
b. The length of each linked list should be decided based on
the capacity of the available bus
c. If a student has no matching travelling date/time, there
should be another linked list for those
Your application should be able to show the following information
through a proper menu of the application:
1. Load the bus information file
2. Load the passenger information file
3. Assign passengers and print assignment information of all
busses
4. Print a specific bus information along with its passengers
information (names and IDs)
5. Print unmatched passengers
6. Add new passenger
7. Delete passenger
8. Delete bus number
9. Exit
Grading policy:
1. Your application should have all functionalities working
properly. Twenty marks will be graded for the functionality of
the project;
2. The following notes will make up the remaining 10 marks of
the grade:
Page "2"
Page "3"
a. There has to be adequate documentation and comments
in the code (i.e, functions, loops, etc.);
b. Your code should follow the code convention (i.e., spaces,
indentations, etc.); and
c. Your application should contain a menu to allow the user
to select which option (s) he would like to run.
Transcribed Image Text:Your application should do the following: 1. Read the drivers file and load it into an array, then read the second file (passengers) which should be added to the busses in a línked list (array of linked lists). Before assigning passengers to busses you should make sure that: a. Each passenger is added to a bus based on the date and departure time. Meaning, each passenger should match the bus based on his/her travelling time and the departure time of the bus b. The length of each linked list should be decided based on the capacity of the available bus c. If a student has no matching travelling date/time, there should be another linked list for those Your application should be able to show the following information through a proper menu of the application: 1. Load the bus information file 2. Load the passenger information file 3. Assign passengers and print assignment information of all busses 4. Print a specific bus information along with its passengers information (names and IDs) 5. Print unmatched passengers 6. Add new passenger 7. Delete passenger 8. Delete bus number 9. Exit Grading policy: 1. Your application should have all functionalities working properly. Twenty marks will be graded for the functionality of the project; 2. The following notes will make up the remaining 10 marks of the grade: Page "2" Page "3" a. There has to be adequate documentation and comments in the code (i.e, functions, loops, etc.); b. Your code should follow the code convention (i.e., spaces, indentations, etc.); and c. Your application should contain a menu to allow the user to select which option (s) he would like to run.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY