ICE 5000 - Inventory Controller and Evaluator
Assigned: Mon Feb 10, 2003 Program #4 is worth 75 points Program due: Weds Feb 19, 2003
ConceptsIn this program you will use the following "new" concepts:
|
DescriptionWrite a program, ICE 5000, that tracks the inventory of a store or warehouse. A typical ICE 5000 session has three parts:
Step 1. Reading inventory Initially, ICE 5000 queries the user for an initial inventory file. Example:
The inventory file must be read and processed. The format of this file is:
An example inventory file is given in the Notes section below. Step 2. Changing inventory interactively With an inventory list in place, the user can now use ICE 5000 to change the inventory listing: add inventory for an item, remove/decrease inventory for an item, or add a new item to the inventory list. ICE 5000 also offers reports on the status of inventory. There are two options: Full inventory listing or statistics. Shunning cumbersome menus, ICE 5000 queries the user for direction at each step. These queries follow this structure:
An example ICE 5000 session appears in the Notes section below. Step 2 (continued). Reporting inventory interactively There are two report types:
Step 3. Writing inventory When the user quits ICE5000, query the user on saving the updated inventory list to a new file. If yes, then save the inventory (in the same format as the initial inventory file) to a specified file.
|
ImplementationYour implementation of ICE 5000 must:
Hints See page 937 of our text on using getline() with files and specifying a delimiter, like a comma, found in our inventory files. Page 275 of our text has an example of reading the contents of an input file until the "end of file" (eof) is reached. And finally, Sections 8.1-8.8 show most (all?) of what you need to know about using arrays in your program.
|
GradingYour program will be graded on three areas: design, quality, and function Design (20%) Your design must include detailed pseudo-code describing how your program will function. Please use the Pseudo-Code Quick Reference as a guide. Quality (20%) Your code should be well-commented, properly indented and structured, and contain informative and consistent names. Function (60%) Your program must implement the ICE 5000 program features per the description above. I will provide test files in the Common Area of the k: drive to exercise your program. You are required to add at least two inventory files, and accompanying README file, on your own to this test suite showcasing the performance of your program.
|
NotesSample sessionHere's an example ICE 5000 session, user input is in bold:
Test filesHere's an example inventory file for the "Dentist's Dream Candy Store". This file is test1.txt in the Common Area/prog04 folder:
More test files are coming soon... AddendumA couple clarifications:
|