The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
I am sorry but does it works for you if i change the deadline. Thank you !
Using C++ to track the inventory of various "items", read and process a transaction file (partially displayed below).  The transaction file contains 5 types of transactions. Store a count of the items in a sorted linked list.Â
DetailsÂ
Program Requirements
Create  your own linked list and may not use any STL containers.
The linked list must be maintained in sorted order by the item number.
This is the first 32 records of the input file.
|
add 9171 add 6503 add 0042 Â add 0042 add 4467 Â add 6965 ad 8469 add 8469 Â subtract 4467 subttact 9171 add 6335 add 6503 add 8469 subtract 6503 add 4467 subtract 0042 subtract 8469 add 6335 subtract 6503 add 1480 subtract 8469 add 1480 Â add 9171 add 1480 subtract 6335 print inventory subtract 9171 subtract 6335 ... Program Output Here is some partial output from the program. ÂOutput
This output shows the contents of the linked list after the first print inventory transaction (plus a few more lines). |
Â
add 9171add 6503add 0042add 0042add 4467add 6965ad 8469add 8469subtract 4467subttact 9171add 6335add 6503add 8469subtract 6503add 4467subtract 0042subtract 8469add 6335subtract 6503add 1480subtract 8469add 1480add 9171add 1480subtract 6335print inventorysubtract 9171subtract 6335add 9361add 8469add 4467add 9171add 6965add 0042add 9171add 9171add 1480add 9171add 9171subtract 0042add 4467add 9361add 5726add 0042subtract 0042prlnt inventorysubtract 4467add 9171print inventoryadd 6965add 5726add 5726add 9171add 1480aad 9361add 0042add 9171add 6335subtract 6335
Attachments: