Question: Problem Description: Passengers are to be added/deleted to/from the queue. Each passenger has his Name, Ticket type and Seat number. 1) Write the code for

 Problem Description: Passengers are to be added/deleted to/from the queue. Each
passenger has his Name, Ticket type and Seat number. 1) Write the
code for the following methods to implement a queue: - Adding passengers
to a queue. (2 marks) - Removing passengers from queue. (3 marks)
- Scanning a passenger's data. Details of a passenger (from the queue)
are to be displayed. (3 marks) -Quit and display the remaining queue

Problem Description: Passengers are to be added/deleted to/from the queue. Each passenger has his Name, Ticket type and Seat number. 1) Write the code for the following methods to implement a queue: - Adding passengers to a queue. (2 marks) - Removing passengers from queue. (3 marks) - Scanning a passenger's data. Details of a passenger (from the queue) are to be displayed. (3 marks) -Quit and display the remaining queue size and values. (2 marks) 2) Run the program by adding at least three sets of values for passengers in the Queue. 3) Delete 1 value from the queue (remember queue follows FIFO), and print the removed passenger. Below is the file in which students will have to write their code wherever they find a comment:/ YOUR CODE HERE PassengerData.java import java.util.Scanner; class PassengerData extends Passenger f public static CreateQueuexPassengen createQueue public PassengerData) super): public void menuOptionsOf char choice

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 Databases Questions!