C++ Stacks 9

profilekyls61491

You will design a program to keep track of a restaurants waitlist using a queue implemented with a linked list.

 

  1. Create a class named waitList that can store a name and number of guests.  Use constructors to automatically initialize the member variables.

·          

  1. Add the following operations to your program:
    1. Return the first person in the queue
    2. Return the last person in the queue
    3. Add a person to the queue
    4. Delete a person from the queue

3.    Create a main program to test your class.  Your main program should contain the following options.  Create a menu for your options.

1.    Add a guest (adds the reservation name and number of guests)

2.    Delete a guest (the user must give you the name to delete, the list may be empty or the guest may not be in the list)

3.    Show last guest waiting (return NONE if the queue is empty)

4.    Show first guest waiting (return NONE if the queue is empty)

5.    Exit

 

Take a screen shot of each menu test (part 3 above)  Compress in one folder the screen shots and the program

    • 9 years ago
    • 5
    Answer(0)
    Bids(0)