Question: This assignment involves creating a Java program that simulates cargo delivery between distribution centers for a shipping company. You will be given a set of

This assignment involves creating a Java program that simulates cargo delivery between distribution centers for a shipping company. You will be given a set of cities, each with a distribution center with cargo packages and delivery vehicles. You must complete several missions, each involving building a simulated delivery vehicle and loading it with cargo packages at a certain city. Then, you must follow a specific route to reach the destination city, dropping off and picking up cargo packages along the way. Your Java program should read the input files that contain information about the cargo packages and generate an output file that shows the final status of the distribution centers in each city. For this assignment, you must use your own implementations of doubly linked list, stack and queue by taking inspiration from your textbook. They should use generics and use a linked-list based implementation. You are not allowed to use any external library or .jar file. Your program should simulate cargo delivery based on input files and generate an output file. The cities.txt file contains information about the cities that are possible destinations for your simulations. Each city has a distribution center with cargo packages and delivery vehicles. The cargo packages are delivered and transported according to the stack principle (LIFO). The packages.txt file shows the initial state of the cargo packages in each city. The delivery vehicles are stored in a central warehouse at the distribution center and follow the queue principle (FIFO). The vehicles.txt file shows the initial state of the delivery vehicles in each city. The delivery vehicle and its cargo packages are represented by a doubly linked list.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!