This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 2. Complete the City Population list example started in class. Create a class based on a logical ADT that can read from a file and store the cities and their state and population, and then compute average, max, min, and median populations. For the latter you have to sort the populations. You should have at least two classes, a CityList class and a driver or test class that puts CityList through its paces. The exact methods in your CityList class are up to you – methods to get the statistical values would be advisable at a minimum. You should be able to reuse some of the list ADT on page 211....
View Full Document
This note was uploaded on 10/21/2009 for the course CS CS 631 taught by Professor Dr.rogerd.eastman during the Spring '09 term at Loyola Maryland.
- Spring '09