Question: JAVA Program: Ticket Counter using Queue data structure Write a program that will simulate a group of customers queuing at a ticket counter. Your program

JAVA Program: Ticket Counter using Queue data structure

Write a program that will simulate a group of customers queuing at a ticket counter. Your program should be able to read the time arrived for each customer. Perform the operations of insert customer, remove customer, display the queue size and peek the time of the front queue.

What you have to complete: 1. Create 2 different classes: Queue class, Application class. 2. Class Queue: contains the behaviors of a queue. 3. Class application: Performed all the operations in a repeated manner until user chooses option to exit (use while). Allow user to make option (use select-case).

*The methods in the Queue class will be :

-insert() // put item at rear of queue -remove() // take item from front of queue -peekFront() // peek at front of queue -size() // number of items in queue

*It needs to be implemented by using Array

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!