Question: Task-1 : Modify the above program to implement a QUEUE in a bank as depicted by the following sample output: i. Provide the menu as

 Task-1 : Modify the above program to implement a QUEUE in

Task-1 : Modify the above program to implement a QUEUE in a bank as depicted by the following sample output: i. Provide the menu as shown below. Run the program in a loop; stop when user opts 4. Add a customer should add an int at the end using the method addLast(). iii. Remove a customer should delete the int at front using the method removeFirst(). iv. Show the queue should display the queue using the method System.out.println(). Queue in a Bunk Qucucina Bank 1. Add a customer 2. Remove a customer 1. Add a customer 3. Show the queue 2. Remove a customer 4. Exit 3. Show the queue 4. Exit Your choice? 1 Your choice! Adiled customer #1 Added customer #2 Qucue in a Bank Queue in a Bank Queue in a Bank 1. Add a customer 1. Add a customer 2. Remove a customer 1. Add a customer 2. Remove a customer 3. Show the queue 2. Remove a customer 3. Show the queue 4. Exit 3. Show the queue 4. Exit 4. Exit Your choice? 2 Your choice? 3 Your choice? Removed customer # 1 Queue 1,2,3 Added customer #3 Queue - 2,3

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!