Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A program creates a queue. The program takes array of user names as String and then performs following operations: If the user name starts
A program creates a queue. The program takes array of user names as String and then performs following operations: If the user name starts with A to S, it will add (enqueue) to the queue If the user name starts with T to Z, it will remove (dequeue) one element from the queue and then add both the user names to the queue. What will the queue look like if the input array is as follows? Please clearly label front and rear of the queue. ["Saeed", "Akram", "Jamal", "Tanveer", "Usman", "Ahmed", "Dawood", "Waheed"] Please run the ticket counter simulation code with following parameters: a. Number of customers per day = 200 b. Single Customer Service Time = 5 minutes c. A customer arrives in the system every 20 seconds How many cashiers are needed to keep the average customer wait time below 10 minutes? A theatre has two (2) cashiers at reception who are available at 8:00am. The customers start arriving in theatre at time 8:00am and a new customer arrives every 50 seconds. Customers go directly to the available cashier or wait in a queue for cashier availability. Every customer requires 4 minutes to be processed by a cashier. What will be the total time (including wait in the queue and processing time) for the sixth customer? Briefly explain why?
Step by Step Solution
★★★★★
3.52 Rating (169 Votes )
There are 3 Steps involved in it
Step: 1
1 include 2 include 3 include 4 using namespace std 5 6 7 8 9 10 11 12 13 14 ...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