Due Date: Thursday, September 26, 2002
The main goal of project #1 is to get you reacquainted with the Ada programming language and some common control structures. The project also requires you to build a program from scratch, which will give you a little practice in doing so. For, the majority of the projects this class you will be building on other code.
In this project you will develop a program to generate
a histogram for letters used in a text document. A histogram is a statistical
graph of a frequency distribution, where the height of vertical rectangles
is proportional to their corresponding frequencies. The idea of the program
is to read a text file, count the occurrences of each letter and calculate
their frequencies then display the histogram on the screen as seen below
(you don't have to put in the table borders):
|
10%
|
* | |||||||||||||||||||||||||
|
9%
|
*
|
|
||||||||||||||||||||||||
|
8%
|
*
|
|
||||||||||||||||||||||||
|
7%
|
*
|
|
|
|
* | |||||||||||||||||||||
|
6%
|
*
|
|
|
|
*
|
|
* | |||||||||||||||||||
|
5%
|
*
|
*
|
|
|
*
|
|
|
*
|
|
* | * | * | ||||||||||||||
|
4%
|
*
|
*
|
|
|
*
|
|
|
*
|
*
|
|
|
* | * | * | * | * | ||||||||||
|
3%
|
*
|
*
|
*
|
|
*
|
*
|
|
*
|
*
|
|
|
*
|
|
*
|
* | * | * | * | ||||||||
|
2%
|
*
|
*
|
*
|
*
|
*
|
*
|
|
*
|
*
|
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
|
*
|
*
|
*
|
*
|
* | |||
|
1%
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
*
|
* | |
|
|
a
|
b
|
c
|
d
|
e
|
f
|
g
|
h
|
i
|
j
|
k
|
l
|
m
|
n
|
o
|
p
|
q
|
r
|
s
|
t
|
u
|
v
|
w
|
x
|
y
|
z
|
|
|