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.
AWT
public class GlassQueue
public class ArrayUnbndQueue
public interface UnboundedQueueInterface
{
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
Get step-by-step solutions from verified subject matter experts
