n this assignment, you will create a program that uses queues to simulate a busy airport with only one runway, that shares aircraft take-offs and landings. Your program will function as an automated air-traffic controller. Hopefully you will do at least as well as some of the human-run airports that we have all experienced either pleasantly, or not so much. In our similulated airport, in each unit of time, one plane can land or one plane depart, but not both. Planes arrive ready to land or ready to take off at random times. At any time, there may be an idle runway. An airplane may be landing, or an airplane may be taking off. Also, there may be several planes waiting to land or take off at any time in their respective queues. To keep track of this, you should use two queues, one called arrivalQueue, and the other called departureQueue to hold waiting planes.
HELLO PLEASE I NEED HELP CREATING A JAVA CODE FOR THIS PROJECT. THANK YOU.
In this assignment, you will create a program that uses queues to simulate a busy airport with only one runway, that shares aircraft take-offs and landings. Your program will function as an automated air-traffic controller. Hopefully you will do at least as well as some of the human-run airports that we have all experienced either pleasantly, or not so much.
In our similulated airport, in each unit of time, one plane can land or one plane depart, but not both. Planes arrive ready to land or ready to take off at random times. At any time, there may be an idle runway. An airplane may be landing, or an airplane may be taking off. Also, there may be several planes waiting to land or take off at any time in their respective queues.
To keep track of this, you should use two queues, one called arrivalQueue, and the other called departureQueue to hold waiting planes.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images