ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

Create simple store inventory tracking system will use a global linked

by | Nov 30, 2023 | questions

Create simple store inventory tracking system will use a globallinked list in memory to manage the inventory for the items on-handwithin a store. Your program must use of the “list” API in theC++sta ndard template library (STL). Your program must keep trackof a list of inventory items in a global linked list data structureand must implement at least one class, which will hold thefollowing class variable:
An integer variable to hold the Stock Keep Unit (SKU) number forthe item. This must be a randomly generated number that consists ofexactly six digits. Duplicate entries are not allowed.
A string variable to hold the name of the item.
An integer variable to hold the number of items in stock.
A double variable to hold the price of an individual item.
A string variable to hold the date that the item was last ordered.The entered date must be in the form mm/dd/yyyy. If the user entersan invalid date format, print an error and re-prompt the user toenter the date in correct format.
Provide the appropriate accessor methods to set and get the datafor these class variables. For example getDateLastOrder() andsetDateLastOrder(string dateLastOrdered). The main program mustprovide the following functionality:
1. When the program is first started, it must read a data filecalled inventory.dat. If the file exists, the program will load thedata for each item record into the global inventory linked listdata structure.
2. When the program exits, it must save all of the entries withinthe global linked list into the inventory.dat data file. At thispoint, if the file does not exist, the program will create it.
3. Provide a simple text-based user interface to allow the user tooperate on the inventory linked list. Note that each item recordmust be placed in a global linked list that holds all of theinformation for each item in inventory. The program interface willallow the user to do the following:
(a) Enter an item – allows the user to enter all fields except theSKU number field, which
will be automatically generated random six-digit number. After thedata fields are entered, the program will place the record in theglobal linked list.
(b) Search for an item – allows the user to search for an itembased on a user provided
SKU number. Display a message if the item is not found in theinventory linked list.
(c) Modify an item – allows the user to modify any of the fieldsfor an item (except for
the SKU number) in the linked list for given record as indicated bythe SKU number.
Display a message if the item is not found in the inventory linkedlist.
(d) Delete an item – allows the user to delete an item from theinventory linked list using
the SKU number as the key. Display a message if the item is notfound in the
inventory linked list.
(e) Display inventory – displays all of the items in the linkedlist. After displaying all of
the items, the program will provide a total cost of the inventorybased on the quantity
and price for each item.
(f) Exit program – Saves all of the items in the inventory and thenexists the program

ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!