Menu

(Solved) : Given Task Creating Waiting List Application Keeps Track People Waiting Turn Capability Ad Q33299844 . . .

You have been given the task of creating a waiting listapplication that keeps track of people who are waiting for theirturn. It should have the capability of adding people to the waitinglist, checking whose turn it is next, serving a customer (which isjust removing them from the waiting list), and finally at closingtime, your program should report if there were any customers whoare still waiting in line, so that they can be advised to come backtomorrow. You are required to use a Queue, and the apporpriateQueue operations to complete all the tasks in this exercise. Youmay assume that a completed StringQueue.h is in your workingdirectory, and you should include it. If you do not use the Queuedata structure defined in StringQueue.h in an appropriate manner,your solution will be marked as incorrect, even if your producedoutput matches the output we expect. When your program starts up,it should wait for input from the user. The following inputcommands need to be handled: a: A new customer has arrived, read ina string representing the customer’s name, and add them to thewaiting list. Print a message saying: [name] arrived where [name]is the name of the customer s: It is time to serve the nextcustomer in the list. If there is a next customer in line, print amessage saying: Now serving: [name] where [name] is the customer’sname. Since this customer is now being served, they should beremoved from the waiting list. If there is no next customer inline, print the message: No customers waiting n: Who is next inline? If there is at least one person still waiting in line, printout a message saying: Next in line: [name] where [next] is the nameof the customer whose turn is next. If there is no next person inline, then print out the message: The waiting list is empty q: Itis closing time. Check to see if there are any customers who arestill witing. If that is the case print out the following: Comeback tomorrow: [name] … [name] Basically, the message followed bya list of everyone who is still waiting. In the process of lisitngthe customers who are still waiting, they should also be removedfrom the list one by one. If there is no one waiting at closingtime, do not print out the message advising customers to come backtomorrow Finally, print out a message saying: Closing up now. andthen terminate your application. It is extremely important that youprint the messages without spelling errors and with the punctuationexactly as it appears in the instructions. For example, there is aperiod at the end of the last message. Look at the sample outputand make sure your matches. Please answer is C++ (you must alsofill in StringQueue.h to solve this problem)

—————-queueOfStrings.cpp——————–

#ifndef Queue_h#define Queue_h#include struct Link { // Provide your code here…};struct Queue { // Provide your code here…};#endif

————–StringQueue.h——————-

#ifndef Queue_h#define Queue_h#include struct Link { // Provide your code here…};struct Queue { // Provide your code here…};#endif

Expert Answer


Answer to Given Task Creating Waiting List Application Keeps Track People Waiting Turn Capability Ad Q33299844 . . .

OR