A college must track equipment items purchased using special funds. Create an Inventory class that represents an...

70.2K

Verified Solution

Question

Programming

A college must track equipment items purchased using specialfunds.

Create an Inventory class that represents an equipment item. Anequipment item consists of an 8-alphanumeric inventory number, ashort description of the item, the purchase price of the item, andits current location (e.g.: room/building location). If an item issurplussed (e.g., gotten rid of), then the current location shouldsay surplus, but the item should remain on the list.

Write a program that reads inventory items from a file into avector. Implement a menu system that allows the user to add, edit,and delete records from the list as well as search the list basedon inventory number and print a report of all records.
The list should always be maintained in order of inventory number.When the program closes, the data file should be overwritten withthe most recent data from the list.

Implement one of the sorting and searching algorithms from thechapter. Do not use the built-in sort function.

Be sure to use the same menu options as shown in theexample so the auto-grader can accurately grade yourassignment.

Sample

MAIN MENU1 - Add2 - Edit3 - Delete4 - Search5 - Print All6 - ExitChoice: 2Enter inventory number to edit: 12-2322-12Curent Values12-2322-12 Printer 800.00 PW-590EDIT MENU1 - Inventory Number2 - Description3 - Price4 - Location5 - DoneChoice: 3Enter new price: 820.00EDIT MENU1 - Inventory Number2 - Description3 - Price4 - Location5 - DoneChoice: 1Enter new Inventory Number: 12-AB-3333Invalid inventory number.EDIT MENU1 - Inventory Number2 - Description3 - Price4 - Location5 - DoneChoice: 5MAIN MENU1 - Add2 - Edit3 - Delete4 - Search5 - Print All6 - ExitChoice: 512-1194-94 Switch 417.00 TR-12312-1232-35 Monitor 300.00 Surplus12-1384-91 MicroPlus 1200.00 Surplus12-2322-12 Printer 820.00 PW-59012-3245-21 Test 120.00 Surplus14-4343-41 Cabinet 175.00 AW-21214-4992-22 Bookshelf 375.00 BN-10014-8383-12 Chair 70.00 BN-10014-9842-85 Desk 283.00 BN-10014-9923-95 Typewriter 120.00 SurplusMAIN MENU1 - Add2 - Edit3 - Delete4 - Search5 - Print All6 - ExitChoice: 6

Need the answer in C++ and always need a .cpp file, .h file, anddriver file

Answer & Explanation Solved by verified expert
4.1 Ratings (725 Votes)
Working code implemented in C and appropriate commentsprovided for better understandingHere I am attaching    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students