A train station decides to reduce the human resource (HR) by automating trains scheduling, i.e.
an order in which trains go through the common line. The train station receives trains that have different
levels of importance, i.e. importance of how they should quickly arrive to their destinations.
Firstly, trains must enter to the check point. In this train station, there is one check point serving
trains. As a result, only one train can enter to the check point at a time even if several trains arrived at
the same time to the station. At the check point, the station's workers determine the priority of the
entered train. Moreover, they estimate the time that the train will take it in the common line. Usually
the priority of the train is given depending on their types [passenger train, train of goods (full), and
train of goods (empty)]. Obviously, if there are trains with same type, the one with earlier arrival time
is assigned a higher priority. And in the case of tie, the higher priority is given to one train in random.
Similarly, the time a train takes it in the common line is decided based on the train's type. For instance,
a passenger train is given a time ranging from 20-30 minutes, a train of goods (full) from 40-50
minutes, and a train of goods (empty) from 30-40 minutes.
Design a system for the train station which automates the operation of admitting the
trains to the station and scheduling them to the common line.
In order to completely simulate the train station system, read the trains' information from the
input file. However, their information cannot be stored in the program simultaneously. Particularly,
you need to ensure that registering/storing the data of one train only is done at time. After you finish
storing all the trains' information using the appropriate data structures and methods, you will find the
order in which the trains will be assigned to go through the common line. In other words, you will find
the schedule of treating the trains using the priorities given by the workers in the check point earlier.
Systems
At the end, calculate the average waiting time and average turnaround time for all trains coming
to the train station. Assume the time is given in minutes.
Hello
I am Algorithm expert and interested in this project. I have reviewed details of your project regarding Trains scheduling and confident to handle the project perfectly. I have few questions in mind. Please communicate so we can discuss further.
Regards
Anshu
Hi, I'm Jimy.
Very interesting your problem, as I am mathematical, in addition to programmer, I can solve it very efficiently.
Also, if you require it I can make you a final report according to your requirements.
Do not hesitate to contact me, we will surely do a great job!
Dear client.
I've read your project description carefully and very interested.
Let's discuss over chat and get started.
Waiting for your reply.
Best regards.
Hi! I'm a Java Developer and Solutions Architect with over 15 years of experience. My main job is to create efficient solutions to solve any kind of problems. So I love algorithms and data structures and I really want to work in this task.
I will deliver 100% quality code very clean and simple, so you can undertand it and explain it very easily.
Waiting for your acceptance to start working on this.
Regards.
I read the task description and I can do it.I have worked on many such projects.I can work on urgent basis and for a reasonable rate..Contact me so we can discuss further
Hi,
Have gone through you requirement and can surely help you.
May I know are you just looking for algorithm (pseudo code) or looking for a proper program in any specific programming language? Is this a college assignment which you need to complete by specific date or a real life task?
Thanks
Design using Unified Modelling Languange (UML), a detail requirement report will be given and to be reviewed.
The UML concept of designing software to be more precise and align with user requirements.