APCompSciA

Text Statistics

Project Overview

In this program, you are going to implement a program that analyzes text files to generate some useful statistics. I will provide plain text versions of several books and articles (e.g. Alice in Wonderland, The Gettysburg Address, etc.) for you to analyze using your program.

Objectives

Specification

Your Tasks - ProcessStatistics

The ProcessStatistics class will serve as the driver class with a main method which processes one or more files to determine some interesting statistics about them. The ProcessStatistics driver class should meet the following criteria,

Your Tasks - TextStatistics

TextStatistics is a class that reads a given text file, parses it, and stores the generated statistics. The TextStatistics class should do the following,

Here is my (word)!

The length of “word” is 4, NOT 7.

Here, is another word!

The length of “Here” is again 4, not 5.

You program must ignore punction and only count the length of the words.

Document, Grade, and Submit your Project