Computer Science 161

Assignment #9

Due:  Wednesday, December 10 (last day of class)

This exercise summarizes much of what we have done in this class.  The exercise can be broken down into two parts:  The first part can be started now, the final part can be done after this Thursday's lab day.

This exercise will be worth 20 points.

Part I: 

Modify your Part and Inventory Classes to

  1. Make whatever additions are necessary to bring the internal documentation of your Part and Inventory classes up to standards.
  2. Modify Inventory so that all methods use one form of the JOptionPane or another. There should be no passing of parameters to any method.

Part II

Add a main method to your Inventory Class which does the following:

  1. Creates an instance of your Inventory class and adds three parts to it for testing.
  2. Asks the user for an option to ADD a new part, DELETE an existing part, to LIST parts currently in the inventory, or to QUIT.  We will discuss some ways to do this Thursday.
  3. Enters a while loop (until the user enters a QUIT command which will
  4. When a QUIT command is issued put up a quick alert message and quit when the user acknowledges it.

The idea behind this exercise is that if you create an executable JAR file of this project, you will have a double-clickable application that acts in many respects as a finished application should.

Turn in:  Use the SUBMIT button to send everything to me.  I will send you a receipt.  If I have not sent you a receipt by the start of finals week, please send me a note.