Change the solution to the Programming Project 9.5 so that it represents four ticket windows and therefore four customer queues. Have new customers go to the shortest queue. Show which queue had the shortest waiting time per customer on average
Programming Project 9.5
Design and implement an application that simulates the customers waiting in line to buy movie tickets. Use a queue. As customers arrive at the theater, customer objects are put in the rear of the queue with an enqueue operation. When the ticket seller is ready for another customer, the customer object is removed from the front of the queue with a dequeue operation. Randomly determine when new customers arrive at the theater and when current customers are finished at the ticket window. Print a message each time an operation occurs during the simulation. Write your own queue data structure.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more