Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q2 (10): A linked-list based stack S has few elements in it as shown below: What will stack look like after following operations are performed
Q2 (10): A linked-list based stack S has few elements in it as shown below: What will stack look like after following operations are performed on it: a. S.pop() b. S.pop() c. S.push(52) d. S.push(36) e. S.peek() f. S.push(28) g. S.pop() Q3 (10): 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 the user 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"] Q4 (10): Please run the ticket counter simulation code with following parameters: a. Number of customers per day =300 b. Single Customer Service Time =7 minutes c. A customer arrives in the system every 30 seconds How many cashiers are needed to keep the average customer wait and processing time to be below 10 minutes
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