Your program must maintain a parts list as a Linked List. Each part will have an ID number, an amount in stock, and a price per item. You must build the list of parts by reading the file: INVEN .TXT .The parts list should be maintained in order by ID number. Next you will process a list of orders in the file: ORDERS. TXT .Each order will have a customer number, a part ID number and a quantity. You must search the list, determine whether the order can be filled and if it can write a confirmation to an ORDER. TXT file and decrement the quantity on hand in the linked list. Input 1. File "INVEN .TXT" contains the inventory data for the parts: where is a string of six characters without embedded blanks, and is an integer representing the number of that part in the current inventory available for sale, and is a float representing the cost of a single part. 2. File "ORDER. TXT" contains the order information for customers: where is a 4 digit integer, is an IDNUM in the inventory (be sure to check for invalid IDNUMs), and is an integer. 3. File "UPDA TE. TXT" contains the modifications to the inventory that must be made at the end of the working day. There will be ADDs, DELs, and CHGs. [ or where the will be ADD, DEL or CHG, will be a new IDNUM to add or an existing IDNUM to delete or change. If the command is ADD there will be two additional fields: quantity and price. If the command is DEL there will be no additional information. If the command is CHG there will be a price change field. Output Use getch() in conio.h to control the screen displays. There must be NO SCROLLING. I have to be able to read everything and advance the screen at will.
1. Echoprint the inventory as you create the linked list. Use getch() in the read and echo loop and allow ~ no more than 10 lines of output to display before the screen pauses for my keypress. 2. Title your output file and write column header descriptions to the file also. Then write to the ORDER. TXT output file the following information for each order successfully processed: Customer number, Part Ordered, Quantity Ordered, Total Cost. If there is a request for a part that cannot be filled then write to the ORDER. TXT output file the following information: Customer number, Part I Ordered, Quantity Ordered, "Part on Back Order". 3. Echoprint to the screen the same information that is being sent to the file. Use the same criteria as in #1 above: display no more than 10 lines of output before pausing for user keypress usinggetch(). 4. Finally, when the order file is completely processed, process the updates to the list. Openthe UPDA TE. TXT file and perform the modifications to the list. Echoprint the modifications being made (10 per screen). When end offile is reached, write to a new ouput file: YOURNAME. TXT the updated list.
Program should be compiled on a MS Visual 6.0 compiler. .tiff files are actual assignment sheets(3 pages) The souce code and header file included is a class example which the program should be built on. All files will definately need to be modified but should resemble the code in some way. I would like the code well documented so that I may understand it.