Question: Exercise using Queues Simulate the operation of a bank. Customers enter the bank, and there are three tellers. If a teller is free, that teller
Exercise using Queues
Simulate the operation of a bank. Customers enter the bank, and there are three tellers. If a teller is free, that teller serves the customer. Otherwise the customer enters the queue and waits until a teller is free. Your program should accept the following requirements: - The customer access the service number and gets a ticket which has his position in the waiting line. - Once a customer has finished with a Teller: Display the free teller number and the next customers number in the line And remove the called customers number from the line. - Always display the number of customer in the list.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
