Java language Don't copy others' answers new code needed to be provided. Program Specifications: Implement a double
Question:
Java language
Don't copy others' answers new code needed to be provided.
Program Specifications:
Implement a double ended queue (deque) according to the interface given using doubly linked nodes and simulate a simple airport with the following rules:
There are 2 runways
Create a menu that allows the user to
- Approve the next plane to take off
The airplanes alternate between runways - unless one runway is empty
- Can override the normal logic and approve the last plane on either of the runways to take off next
Deque Interface:/* Based on java.util.Deque interface https://docs.oracle.com/javase/7/docs/api/java/util/Deque.html */ public interface Deque
Runway1: AA1111, AA2222, AA3333, AA4444
Runway2: AA5555, AA6666
### MENU ###
1. pprove next plane
2. mergency override from Runway 1
3. mergency override from Runway 2
Enter choice (1-3): 1
Taking off from Runway 1: AA1111
Runway1: AA2222, AA3333, AA4444
Runway2: AA5555, AA6666
### MENU ###
1. pprove next plane
2. mergency override from Runway 1
3. mergency override from Runway 2
Enter choice (1-3): 1
Taking off from Runway 2: AA5555
Runway1: AA2222, AA3333, AA4444
Runway2: AA6666
### MENU ###
1. pprove next plane
2. mergency override from Runway 1
3. mergency override from Runway 2
Enter choice (1-3): 1
Taking off from Runway 1: AA2222
Runway1: AA3333, AA4444
Runway2: AA5555, AA6666
### MENU ###
1. pprove next plane
2. mergency override from Runway 1
3. mergency override from Runway 2
Enter choice (1-3): 2
Taking off from Runway 1: AA4444
Runway1: AA3333, AA4444
Runway2: AA5555, AA6666
### MENU ###
1. pprove next plane
2. mergency override from Runway 1
3. mergency override from Runway 2
Enter choice (1-3): ...
Business Communication Essentials a skill based approach
ISBN: 978-0132971324
6th edition
Authors: Courtland L. Bovee, John V. Thill