Air-traffic control (queue using a linked list) Given a partial…
Question Answered step-by-step Air-traffic control (queue using a linked list) Given a partial… Air-traffic control (queue using a linked list)Given a partial main.py and PlaneQueue class in PlaneQueue.py, write the push() and pop() methods for PlaneQueue. Then complete main.py to read in whether flights are arriving or have landed at an airport.An “arriving” flight is pushed onto the queue.A “landed” flight is popped from the front of the queue.Output the queue after each plane is pushed or popped. Entering -1 exits the program.Ex: If the input is:arriving AA213arriving DAL23arriving UA628landed-1the output is:Air-traffic control queue Next to land: AA213Air-traffic control queue Next to land: AA213 Arriving flights: DAL23Air-traffic control queue Next to land: AA213 Arriving flights: DAL23 UA628AA213 has landed.Air-traffic control queue Next to land: DAL23 Arriving flights: UA628 Computer Science Engineering & Technology Python Programming OTHER CSI1234 Share QuestionEmailCopy link Comments (0)


