Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program in C++ - full solutions only: both classes and driver file All instructions are includes.. both class files and main file needed. please implement
Program in C++ - full solutions only: both classes and driver file
All instructions are includes.. both class files and main file needed.
please implement a shopping list that uses a linked list to store the information. The program should have a menu for the user to enter items into the list. It should store the item information into ist nodes and chain them together to form a linked list. For each item, please store the item number and the item name. For example: Item No Item Name Pizza Juice Bread 7 Implement a class LinkedList as prototyped below (header files don't have to be exactly the same as below, but they should support the same functionality). The main program should provide the user with the following options: . Add a new node at the beginning 2. Add a new node at the end 3. Remove the beginning node 4. Remove the end node 5. Remove a node from the list by entering an item number (If the item cannot be found, the program should display "Item Not Found".) 6. Remove a node from the list by entering an item name (If the item cannot be found, the program should display "Item Not Found".) . Print out the list 8. Quit the program Please print out the list after each operation. Make sure you use a linked list for the storage of the items. All of the operations should be done with the use of the linked list. You don't need to consider the duplication this time. You may implement the classes as followsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started