Question: Language used: python 3 You are required to develop an application to manage the queue at newly Constructed restaurant Details recorded for each customer in

Language used: python 3 You are required to develop an application toLanguage used: python 3

You are required to develop an application to manage the queue at newly Constructed restaurant Details recorded for each customer in a wait queue are as follows: Queue Number . The first customer of the day will get a starting queue number which is either 100, 200, 300, 400 or 500. Subsequently the queue number will be incremented by 1. Customer name Missed call number Number of times the customer's queue number is called but he missed the calls. The probability of answering a call is assumed to be 1/3 (i.e. 2/3 of the time, customers are busy and miss the call) Implement a menu as shown below: Menu 1. Register a customer 2. Call next customer 3. List customers in queue 0. Exit Register a customer o Prompt the user for their name o Add him into the wait queue with the details: queue number, customer name and the number of calls missed, set to o initially. Call Next customer o Display that there is no customer in wait queue if the wait queue is empty. o Otherwise, display the queue number of the first customer in the wait queue. o In the event that the customer responds to the call, he is removed from the wait queue, and put into another 'customer served' queue, to indicate that the customer has gotten his food. Display a message to indicate that the customer is being served. In the event that the customer misses the call when his queue number is called, add 1 to the number of call he misses. er of calls missed becomes 3, the customer is put to the end of the wait queue. Reset his number of calls missed to zero. Display a message to indicate that the customer has been placed to the end of the wait queue. The next customer in the wait queue is called, and the same process is repeated until one customer responded to the call or until the end of the wait queue is reached List Customers in Queue o Display that there is no customer in wait queue if the wait queue is empty o Display a header for the customer detail: queue number, customer name, number of missed calls. o Display the details of customers in wait queue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!