Computer Science 122
Assignment 2
Due: September 18, 2003

You are to create an application that reads from a file and stores the data in an array of classes.  The program should then display the data on the screen.  The file should store data about the product that you have chosen to sell.  Have at least 4 or 5 entries.  For example if the product is that of fruit, you might sell apples, oranges, bananas, pears, and grapes.  Try to come up with reasonable prices, but don’t spend a lot of time finding them.

Follow the example called ArrayOfObjects described in class.  But adapt it to your own product.  Have one class for the product and a second class for the array.  In the main method instantiate the class that contains the array.  Instantiate the array itself in the class that contains it.

Hand in a disk and a printout of your program.