For this project, you will write a simple inventory program for a small camera and video store, Crazy Ernie's Camera and Video Emporium. First, you must read in the current inventory records from a file, and store the inventory information given in an array of structs. You may assume that Ernie has anywhere from 1 up to 100 items in stock at this time. The first part of the data file, the inventory section, will contain a series of lines, one line per product, with the following information on each: (1) item number (a 4-digit integer), (2) number currently in stock (an integer in the range 0 thru 99), (3) unit price (real), (4) item name (a string of up to 50 characters). This data is not sorted. Print this initial inventory information in a table. After you read in and echoprint the inventory, sort the data structure in ascending order by item number. Then print another table, showing the current inventory in the same format as before, but in sorted. Next, you are ready for the inventory updating portion of the program. The second part of the data file, the update section, contains records of recent orders processed which must be used to update the inventory records. Each line in this part of the data file contains one transaction, giving (1) the order number (3 letters followed by 4 digits), (2) item number (same as above), (3) transaction code ('S' = sold, 'R' = returned), and (4) number of items sold or returned (an integer). The item number should correspond to an item number read in from the inventory - if so, the transaction is recorded by updating the data structure storing the inventory data. If the transaction code is 'R', the number of items returned is added to the number in stock. If the code is 'S', the number sold is subtracted from the number in stock. If more items are sold than are in stock, print a message to that effect, and print a message giving the number which must be back-ordered (the difference between the number ordered and the number in stock). Then set the number currently in stock to zero. Note that for each item in the inventory, there may be zero, one, or multiple transactions.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
4) Program must be done exactly as described in the document called '[url removed, login to view]', included in the zip file.
5) Program must be done exactly how I want to it.
Must work for all C compilers & all Windows operating systems.