program to Analyze
rogtheman123451. Writing a tool to use in analyzing inaugural addresses You must write a program called analyze.cpp (which should be directly inside the analysis directory) to provide the items shown below for each of the 56 inaugural addresses:
1. (5 points) Word count
2. (5 points) Sentence count
3. (5 points) Paragraph count
4. (5 points) Average sentence length (in words)
5. (5 points) Average word length
6. (10 points) Number of first-person singular pronouns (I, I’ve, I’ll, me, my, mine, myself )
7. (10 points) Number of first-person plural pronouns (we, we’ve, we’ll, us, our, ours, ourselves)
8. (5 points) Ratio of first-person singular pronouns to plural pronouns Running analyze.cpp should result in the display of a single table (5 points) where each of the 56 rows represents a single inaugural speech, and all the above items are given for each row. Failure to display at least part of the above table items for each speech will result in a grade of 0, in spite of how much work you may have done. Think carefully about the best way to store your data for use by your program. (Note that in C/C++ a dynamically allocated string can be very long.) You may also write other programs or versions of analyze.cpp that give additional results. Do not include the compiled executable versions of your programs in the directory you turn in, but only include the source code (.cpp) versions.