Exercise #5

Plotting data

The file /usr/local/minitab/dat/trees.DAT consists of thirty-one lines, each containing three statistics about a black cherry tree in the Allegheny National Forest in Pennsylvania: its diameter at 4.5 feet above ground level, in inches (right-justified in the first eight columns); its height, in feet (right-justified in the next seven columns); and its volume, in cubic feet (right-justified in the next nine columns).

The exercise is to write a DrScheme program that generates and displays, in a window, a two-dimensional plot in which the trees' heights are plotted against their diameters. As a model, here's what a plot of the trees' volumes against their diameters might look like:

(screenshot: a plot containing coordinate axes, with ticks
appropriately labeled, and thirty-one data points)

This exercise is due on Friday, May 12. Please submit your source code. I'll run your program myself to look at the graphical output.


This document is available on the World Wide Web as

http://www.cs.grinnell.edu/~stone/exercise-5.xhtml

created May 4, 2000
last revised May 8, 2000

John David Stone (stone@cs.grinnell.edu)