15-100 PROGRAM 6 - FALL 2007
Due: Monday, October 8 by 11:59PM using electronic hand-in
BACKGROUND
A speech writer wants to do an analysis of a speech to determine the number of words that
are used of a specific length. (Public speeches where words are overly long might be
confusing for the general public.) You are hired to write a Java program that reads in a text
file that contains a speech containing only words and spaces (no punctuation), and you will
output the total number of words in the speech that are 1 letter long, 2 letters long, ...,
9 letters long and the number of words that are more than 9 letters long.
ASSIGNMENT
Download the zip file
SpeechAnalyzer.zip
from the course website. This file, when
uncompressed, contains a folder that has
two
Java classes. Load this project folder into Eclipse.
One class is the
SpeechAnalyzer
class that contains a main method that you must write
that will count the total number of words of each length from 1 to 9 and greater than 9.
This
preview
has intentionally blurred sections.
Sign up to view the full version.

This is the end of the preview.
Sign up
to
access the rest of the document.
- Fall '07
- TOM
- Abraham Lincoln, Computer file formats, Text editor
-
Click to edit the document details