Computer Science 121
Assignment 7
Due: November 19, 2002

This time you are to write a program that reads in data about computers from a file and stores it in an array of objects (classes).
The data for a computer will consist of its name, price and speed.  The name is a String, the price a double, and the speed an integer.  You may use the data file listed below.  Echo the data as it is read in. That is, after the data about a computer has been read in, display the data on the screen.

When all the data has been read in and stored, find the average price of all the computers and the fastest computer.  You should do this in two separate methods, one that finds and returns the average price and the other that finds and returns the fastest computer.

Finally, call a method that will display the average price and the data for the fastest computer.

When you have finished the program, write a description of how you went about designing and writing the program. Use a word processor and print this on a separate sheet of paper.

computers.txt

Dell
1295.59
980
Compaq
998.50
950
Hewlett Packard
1485.98
1200
Gateway
1159.55
1280
IBM Thinkpad
1395.95
975
IMac
1549.95
1220