Language (or Software): C++ Create simple store inventory tracking system will use a global linked list in

Language (or Software): C++ Create simple store inventory tracking system will use a global linked list in

 

Language (or Software): C++

Create simple store inventory tracking system will use a global linked list in memory to manage the inventory for the items on-hand within a store. Your program must use of the “list” API in the C++sta ndard template library (STL). Your program must keep track of a list of inventory items in a global linked list data structure and must implement at least one class, which will hold the following class variable:
An integer variable to hold the Stock Keep Unit (SKU) number for the item. This must be a randomly generated number that consists of exactly 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 enters an invalid date format, print an error and re-prompt the user to enter the date in correct format.
Provide the appropriate accessor methods to set and get the data for these class variables. For example getDateLastOrder() and setDateLastOrder(string dateLastOrdered). The main program must provide the following functionality:
1. When the program is first started, it must read a data file called inventory.dat. If the file exists, the program will load the data for each item record into the global inventory linked list data structure.
2. When the program exits, it must save all of the entries within the global linked list into the inventory.dat data file. At this point, if the file does not exist, the program will create it.
3. Provide a simple text-based user interface to allow the user to operate on the inventory linked list. Note that each item record must be placed in a global linked list that holds all of the information for each item in inventory. The program interface will allow the user to do the following:
(a) Enter an item – allows the user to enter all fields except the SKU number field, which
will be automatically generated random six-digit number. After the data fields are entered, the program will place the record in the global linked list.
(b) Search for an item – allows the user to search for an item based on a user provided
SKU number. Display a message if the item is not found in the inventory linked list.
(c) Modify an item – allows the user to modify any of the fields for an item (except for
the SKU number) in the linked list for given record as indicated by the SKU number.
Display a message if the item is not found in the inventory linked list.
(d) Delete an item – allows the user to delete an item from the inventory linked list using
the SKU number as the key. Display a message if the item is not found in the
inventory linked list.
(e) Display inventory – displays all of the items in the linked list. After displaying all of
the items, the program will provide a total cost of the inventory based on the quantity
and price for each item.
(f) Exit program – Saves all of the items in the inventory and then exists the program

"96% of our customers have reported a 90% and above score. You might want to place an order with us."

Essay Writing Service
Affordable prices

You might be focused on looking for a cheap essay writing service instead of searching for the perfect combination of quality and affordable rates. You need to be aware that a cheap essay does not mean a good essay, as qualified authors estimate their knowledge realistically. At the same time, it is all about balance. We are proud to offer rates among the best on the market and believe every student must have access to effective writing assistance for a cost that he or she finds affordable.

Caring support 24/7

If you need a cheap paper writing service, note that we combine affordable rates with excellent customer support. Our experienced support managers professionally resolve issues that might appear during your collaboration with our service. Apply to them with questions about orders, rates, payments, and more. Contact our managers via our website or email.

Non-plagiarized papers

“Please, write my paper, making it 100% unique.” We understand how vital it is for students to be sure their paper is original and written from scratch. To us, the reputation of a reliable service that offers non-plagiarized texts is vital. We stop collaborating with authors who get caught in plagiarism to avoid confusion. Besides, our customers’ satisfaction rate says it all.

© 2022 Homeworkcrew.com provides writing and research services for limited use only. All the materials from our website should be used with proper references and in accordance with Terms & Conditions.

Scroll to Top