2. Write a program that allows a user to see a recipe, one step at a time. A recipe class will
contain a queue to hold the steps of the recipe and a list to hold the ingredients. The
constructor creates the recipe from an input file. The test program will first print the
Additional Resources
2. An Introduction to Data Structures in C++: Queues:
Key Terms
➢ addQueue: an operation that adds a new element to the rear of the queue
➢ Back (rear): the location where elements are added to a queue; also a queue operation
(back)
➢ Customer: in a queuing system, refers to the object receiving the service
➢ deleteQueue: an operation that removes the front element from the queue
➢ destroyStack: an operation that removes all the elements from the stack, leaving
➢ push: adds a new element to the top of the stack
➢ Queue: a data structure in which the elements are added at one end, called the back or
rear, and deleted from the other end, called the front
➢ queueFront: a pointer to keep track of the front of the queue
➢ queueRear: a pointer to keep track of the rear of the queue