Question: revise the Average Waiting Time program to do the following: a) Also output the largest number of customers who were on a queue at the

revise the Average Waiting Time program to do the following:
a) Also output the largest number of customers who were on a queue at the same time.
b) Choose the queue for a customer to enter based on shortest finish time, rather than shortest size. The user should have the ability to choose which approach to use for any simulation run.
Revise based off the AWT code
AWT
public class GlassQueue extends ArrayUnbndQueue public class ArrayUnbndQueue implements UnboundedQueueInterface public interface UnboundedQueueInterface extends QueueInterface { void enqueue(T element); //Adds element to the rear of this quee. } public interface QueueInterface { T dequeue() throws QueueUnderflowException; //Throws QueueUnderflowException if this queue is empty; //otherwise, removes front element from this queue and returns it boolean isEmpty(); //Returns true if this queue is empty; otherwise, return false }

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!