Write a program in C that creates a simplified railways network. The program starts by offering the user the following list of options : 1. Please enter 1 to add a new record of stations . 2. Please...


Write a program in C that creates a simplified railways network. The program starts by
offering the user the following list of options :
1. Please enter 1 to add a new record of stations .
2. Please enter 2 to add a new record of tracks.
3. Please enter 3 to sort and print the tracks according to their lengths in descending
order .
4. Please enter 4 to find and print the station that has the maximum number of
connected tracks .
5. Please enter 5 to exit the program.
Notes about the program:
1. The information about each station is composed of the following attributes:
Number and Capacity.
2. The information about each track is composed of the following attributes:
Number, Length, StStation, and EnStation.
3. After accomplishing any of the tasks (1, 2, 3, and 4) or entering an invalid value,
the program will show the list of options again.



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here