Please if your code don't work, please don't answer the question . I was struggling with the question, with time i would be able to answer the question but i've got limited time. This Program is in C++.
Problem Statement
Customers of the Muscat Group are required to come in once a month to handle personal business. Each customer gets 10 minutes with a consultant in order to complete their business.
At the end of the 10 minutes the consultant ends the conversation with the current customer and invites a new customer who has been waiting to come. At this point the previous customer can say they have finished their business or they can determine if they must get back into the wait state. In order to ensure each customer is seen, each customer who repeatedly gets in line does so with a lower priority.
That is, first time seen customers have a higher priority then the second attempt customers. The second attempt customers have a higher priority than the third attempt customers and so on.
Write a program that simulates this environment and asks the customers if they have finished or require more time with a consultant.
NOTE: It is important to remember that you have to choose the appropriate data structures and members to represent a customer.