Goals
- to practice your software development techniques
- to practice Java and using libraries
- to practice finding information on your own
Overview
For this assignment, you will develop the gift program.
Refer to the problem description and input and output specifications
in another handout.
Those specifications must be met.
This handout gives other requirements for the delivered program.
Requirements
Your program must be in Java.
It should follow your design but need not match it exactly.
It should compile and execute cleanly on the Java compiler on
our Linux system, cs.
It must use appropriate functions extensively,
and those functions must use parameters passed appropriately.
The functions should have high cohesion and low coupling.
Create a directory for this project. Be sure that there is exactly one main method.
Your Java program should read the inventory from a file. The file name will be provided on the command line. Do not ask for it. Command line arguments are presented to Java programs through the (String[] args) parameter of the main method. You can use the Run Configurations menu item of the Run menu in Eclipse to set the value of the command line argument. Or you can run the program from the command line with: java MainClass CommandLineArg
Your program should use classes from the Java Library appropriately. Anything in the standard Java libraries may be used. Do not implement your own data structures if good alternatives are already in the libraries. But you are allowed to build classes to define your own objects where appropriate.
Your program should be appropriately commented and indented. You should test it to find bugs before I find them. It should be modifiable and flexible. Just having the program execute cleanly does not assure an 'A' grade.
If you have questions about the problem, ask me.
Submit it as the gift assignment. Multiple submissions are acceptable until the due date but don't overdo it.