C++ Stacks 9
kyls61491You will design a program to keep track of a restaurants waitlist using a queue implemented with a linked list.
- Create a class named waitList that can store a name and number of guests. Use constructors to automatically initialize the member variables.
·
- Add the following operations to your program:
- Return the first person in the queue
- Return the last person in the queue
- Add a person to the queue
- 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)
other Questions(10)
- Approaches
- Need someone to do this for me
- blaw 201 online exam
- Compose a safety policy statement for your current organization (or an organization for which you previously worked). Be certain it is specific to the organization, and not just a series of generic statements.
- Assignment 22
- Marketing 6
- Final Marketing Plan
- Anyone who can do my assignment in less than 30mins
- payment link
- The Effect of Addiction