Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started