Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HELP! Can someone please help me with this assignment, I am struggling with this. This is in JAVA btw and The assignment outline is above

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

HELP! Can someone please help me with this assignment, I am struggling with this. This is in JAVA btw and The assignment outline is above along with the base code and the new txt documents. Thank You

Assignment Description This assignment provides the opportunity to learn how regular queues and priority queues work, and how data structures can be nested inside objects. In assignment 7, we will complete the railroad. Build assignment 7 on your solution to assignment 4 or use the solution I placed on Canvas Railroad yards are generally divided into several different types of yards such as receiving, sorting, and departure yards. Use the railroad yard from assignment 4 and add a receiving yard and a departure yard. Now, we also need a railroad yard controller. There are a few modifications to the railroad from assignment 4 as specified below and two new classes - RailCars and RailroadYardController. The completed railroad contains . 1 railroad yard object with 1 Receiving Track o This is just one track, it holds rail cars that are waiting to be added to trains - o 1 Sorting yard Has "n" tracks - each is either empty or has one train on it. The trains in the sorting yard are assembled from rail cars waiting on the receiving track The railroad yard controller moves assembled trains to the departure track " o 1 Departure track This is just one track, it holds completed trains ready for departure. It can hold all the trains in the sorting yard. Train departures are ordered by the length of the train: the shortest trains depart first - 1 railroad yard controller (or tower) . Controls all movements of rail cars from the receiving track into the sorting yard Controls all movements of assembled trains from sorting yard to the departure track. o o In this assignment, process all rail cars on receiving track by adding the rail cars to one of the trains sitting on a track in the sorting yard. Once all receiving track rail cars are processed, move the trains in the sorting yard to the departure track then clear for departure To main line DEPARTURE TRACK Trains ready to depart SORTING YARD Trains being assembled RECEIVING TRACK Cars waiting to be added to trains Assignment Description This assignment provides the opportunity to learn how regular queues and priority queues work, and how data structures can be nested inside objects. In assignment 7, we will complete the railroad. Build assignment 7 on your solution to assignment 4 or use the solution I placed on Canvas Railroad yards are generally divided into several different types of yards such as receiving, sorting, and departure yards. Use the railroad yard from assignment 4 and add a receiving yard and a departure yard. Now, we also need a railroad yard controller. There are a few modifications to the railroad from assignment 4 as specified below and two new classes - RailCars and RailroadYardController. The completed railroad contains . 1 railroad yard object with 1 Receiving Track o This is just one track, it holds rail cars that are waiting to be added to trains - o 1 Sorting yard Has "n" tracks - each is either empty or has one train on it. The trains in the sorting yard are assembled from rail cars waiting on the receiving track The railroad yard controller moves assembled trains to the departure track " o 1 Departure track This is just one track, it holds completed trains ready for departure. It can hold all the trains in the sorting yard. Train departures are ordered by the length of the train: the shortest trains depart first - 1 railroad yard controller (or tower) . Controls all movements of rail cars from the receiving track into the sorting yard Controls all movements of assembled trains from sorting yard to the departure track. o o In this assignment, process all rail cars on receiving track by adding the rail cars to one of the trains sitting on a track in the sorting yard. Once all receiving track rail cars are processed, move the trains in the sorting yard to the departure track then clear for departure To main line DEPARTURE TRACK Trains ready to depart SORTING YARD Trains being assembled RECEIVING TRACK Cars waiting to be added to trains

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions