Question: For this program you will read in a file of text ( you might want to read in the text for the final exam (

For this program you will read in a file of text (you might want to read in the text for the final exam (hint, hint))
And parse that file into individual words
Output the words one word per line.
Be sure your program takes into account different "endings" for words, i.e.
punctuation (with special consideration for some punctuation marks like the apostrophe and the hyphen.)
spaces
end of lines
end of the file
You only need to read a couple of lines from the text file if you want, or do the whole file.
Note: Words like "there's" or "it's" should be output as "theres" and "its" not as the word "there" and the letter "s" or the word "it" and the letter "s". The same is true for words like "man-kind" which should be output as "mankind" not "man" and "kind".
I have attached a picture of the file to be parse
For this program you will read in a file of text

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!