Due .... Monday, Oct 2.
The purpose of this program is to find out the length of words in the
English language. Get as many points as you can, using the table
below.
The dictionary is at http://euclid.nmu.edu/~randy/Classes/CS122/HistogramAssignment/Dict.txt
Points | Task |
3 | Read in the dictionary of words |
3 | Compute an array of data describing the the length of the words.
You get this if you have an array data such that data[13] == 23 means there are 23 words with length 13 Or any other data structure serving the same purpose. |
3 | You can find the length of the longest word |
3 | You print a histogram of the word lengths |
1 | You can tell the longest word |
3 | Your Java program can download from the web the dictionary |
2 | You get everything all lined up like it is below |
1 | For each row, you print the number of words of that length |
1 | For each row, you print the coresponding word length |
The answer looks something like this ....
0: 0:
1: 0:
2: 49:
3: 536:**
4:2236:************
5:4176:**********************
6:6177:*********************************
7:7375:****************************************
8:7077:**************************************
9:6091:*********************************
10:4599:************************
11:3072:****************
12:1882:**********
13:1138:******
14: 545:**
15: 278:*
16: 103:
17: 57:
18: 23:
19: 3:
20: 3:
21: 2:
22: 1: