We looked at three sample programs. The source code and executables are available on turing at
~goldwasser/csp125/demos/histogram
Alternatively, you may view the source code directly with the following links:
histogram.cpp
Used to build histograms of scores in the range [0,10]
histogramExtra.cpp
Used to build histograms of scores in a range specified by user
histogramText.cpp
Builds a histogram based upon the starting letter of words in a
document.