Your task is to write TWO programs.  Both are easy, and both involve arrays.

The first task is to write a program that draws.  Basically, when you click, it connects the dots.

You get 20 points for having it work, and 5 points if the dots change color as mine do.  This program is out of 30 points.

The Drawing Applet

 

Your second task is to write a histogrammer!  This is a program that when you click it makes a histogram, basing the bucket values upon the click location. 

You get 25 points if it can draw the histogram including changing values based on click location.
5 points if the buckets start at the bottom and not at the top.
5 points if you can display the values of each bucket below each bucket
10 points for displaying the value of the largest bucket
20 points for displaying the average bucket value.
20 points for displaying the median (middle valued) bucket.

The Histogram Applet