Question: In C + + REQUIREMENTS: You are tasked with writing a program that takes as input a possibly large text document and creates as output
In C
REQUIREMENTS:
You are tasked with writing a program that takes as input a possibly large text document and creates as
output an alphabetized index showing the frequency that each word appears.
As a brief example:
Input: How much wood could a woodchuck chuck if a woodchuck could chuck wood?
Output:
A
Chuck
Could
How
If
Much
Wood
Woodchuck
Your program should additionally calculate a statistical report for the file processed containing the following
information:
total number of words
number of unique words
number of unique words of more than three letters
average word length
average sentence length
SPECIFICATIONS:
You must use the binary search tree ADT to solve this problem.
Input
Output
From the keyboard: The name of the file containing the text to be analyzed.
Write the following information to a file and print to the screen:
The name of the file
A listing of the file
The lexicon with word frequencies
The statistical summary
Definitions
Word:
A sequence of letters ending in a blank, a period, an exclamation point, a question mark, a
colon, a comma, a single quote, a double quote, or a semicolon. Numbers do not appear in the
words; they may be ignored.
Unique word:
Words that are spelled the same, ignoring uppercase and lowercase distinctions.
Sentence:
All words between any two periods, exclamation points, or question marks.
Deliverables
Listing of the source code of your
program.
Sample Run.
Test Plan.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
