Question: please question 7 as a java code. Q7. A program creates a queue. The program takes array of user names as String and then performs

 please question 7 as a java code. Q7. A program creates

please question 7 as a java code.

Q7. 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"] Q8. 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

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!