Question: please write this program in c++ Each item available for rental has a Name, Sport, Quantity and Cost. Write a menu-driven program that uses a

please write this program in c++
please write this program in c++ Each item available for rental has

Each item available for rental has a Name, Sport, Quantity and Cost. Write a menu-driven program that uses a linked list to record the following information for each type of rental equipment. - Name - Sport (Hockey, Ice Skating, Skiing, Snowmobiling) - Quantity - Cost Include the following menu options: 1. Insert an item 2. List items for a sport 3. Print List 4. Print List in Reverse 5. Exit Each option is explained below: 1. Insert an item: Reads the info for an item from the user and inserts a node with the data into the linked list, by type and then in alphabetic order by item name. 2. Print Items available for a sport: Allows user to choose the sport, then prints a table with all information for all items for that sport type. Print "Not Available" for an item with a quantity of 0. 3. Print List: Prints all information for each node in the list, in a table with column headings. Items should be displayed as they are in the list (by type and then alphabetically by name) 4. Print List in Reverse: Prints all information for each node in the list starting with the last node and ending with the first node. Must be implemented recursively. 5. Exit: Exits the program Your program must continue to display the menu and process selections as stated above until the user chooses to exit the program. Write a class named Equipmentlist that contains a linked list as stated above. Modify the standard linked list operations to accommodate the extra fields and to order the list by item name. Modify the Display method to implement Option 3. Write an additional method to implement Option 2. Your main program should create the EquipmentList object and contain the menu code as well as functions to invoke the appropriate function on the EquipmentList object for each menu selection

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!