The office inventory

Problem description

Write a program to maintain and report an inventory of office supplies. The program should start from a zero inventory and be able to accept input in the form of a description and an amount by which to increase or decrease (if negative) the holding of the supply item. The cost of each supply item is constant and is hard-coded in the program. At the end of the input, a list of supply items, their amounts and the total money worth of the inventory should be printed.

Procedure

Follow these steps to end up with a sucessful program:

  1. Write a one sentence problem statement.
  2. Write the problem description, as given above.
  3. Do the analysis for object design, ending up with at least three classes (including a class for the application), choosing suitable representations for the class members. Write the object design down.
  4. Do the analysis for process design, adding suitable function members to your classes with appropriate parameters. The application class with have (at least) a function member run.
  5. Write C++ program code from your analysis in 3 and 4.
  6. Create a source file using the editor.
  7. Compile the source code using g++.
  8. The program should create an "empty" inventory that can handle the following supply types, listed here with their unit cost:

    pencils $0.30
    legal-pads $1.20
    paper-clips $0.02
    folders $0.03
    pens $1.35
  9. Deliverables:

Notes and hints