Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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++
image text in transcribed
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

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students explore these related Databases questions