Em Andamento

Inventory

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.

## Deliverables

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.

## Platform

Must work for all C compilers & all Windows operating systems.

Habilidades: Programação C, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: table data structure, string in data structure, string data structure, sorted data set, sort array in ascending order in c, sort array c, set in data structure, set data structure, programming in data structure, programming data structure, programming and data structure, integer real number, integer and real number, functional programming in r, difference between integer and real number, data structure sort, data structure set, Data Structure programming, data structure note, data structure in programming, data structure in array, data structure array, array in data structure, array data structure, 0 1 integer programming

Acerca do Empregador:
( 4 comentários ) United States

ID do Projeto: #3026334

Premiar a:

txplorer

See private message.

$7 USD em 1 dia
(37 Avaliações)
3.7

2 freelancers estão ofertando em média $5 para este trabalho

gopinathsvw

See private message.

$3.4 USD em 1 dia
(0 Comentários)
0.0