Project #1 - Due March 23rd

Inventory Sales System

Here are the facts about the inventory:

Part #      Item             Cost
100         Radio          $50
200         TV              $300
300         Computer   $500
400         Book          $10

Create a data file with the following information:
100    3
300   2
300    0
100   1
200   -1
200   2
10     5
300   1

The first number represents the id number. The second number represents the quantity.

Have your program process the items from the data file until the file reaches end of file.
The processed values will go to a text file. You may wish to have your program open the text file from the system command.

For each valid part number, and positive quantity, list the item, quantity, and total about for the sale.

For example the first line has: 100 3. So you would list in your file.:
Item   Quantity    Cost   Total
Radio 3               $50      $150

Be sure to use the width command to set the width of the fields so things are in order.

Do this for each item and at the end display a summary at the end after all the values in the file have been read in:
***********
* Summary *
***********
Item             Quantity      Cost      Amount
Radios         ___            ____      ____
TVs             ___            ____      ____
Computers   ___            ____      ____
Book           ___            ____      ____

                                      Total       _____

Have your program check to see that the date file exists before processing the data. Also check to see that the output file was able to be created.