HW #12 - Inventory Keeper

Due Monday, April 23 at 3:30 PM

This assignment is to create a program that will keep track of a store's inventory. The program should present the user with several options, such as:
- read inventory data from a file
- update inventories
- print inventory data for one product
- print entire inventory list (sorted by product number)
- calculate the retail value of the entire inventory
The print options should include further options to print either to the screen or to a file.

The original data will be in a file formatted as follows:

Product Number (int)    Name (string)    Unit Price (double)     Units in Stock (int)

Each such record will be on its own line. You won't know ahead of time how many records there will be, nor will the records be sorted (you'll have to do that yourself). Product Names may be more than one word long.

Think about your implementation, because I'll be looking for well-designed programs. For example, how should you represent the inventory data for a product (hint: inventory data is not a C++ data type)? How should you efficiently print to either the screen or the file (hint: it should only require one function)? User-friendliness is also important.

Remember to turn in the appropriate pieces:
- printed source code
- design documentation
- printed output
- electronic copy of executable program


Back to Main Page