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
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