. It made the boy sad to see the old
In C++
oldmanSea.txt contains:
He was an old man who fished alone in a skiff in the Gulf of Mexico Stream and he had gone
eighty-four days now without taking a fish .
In the first forty days a boy had been with him . But after forty days without a fish the boy’s
parents had told him that the old man was now definitely and finally salao , which is the worst
form of unlucky , and the boy had gone at their orders in another boat which caught three good fish the first week .
It made the boy sad to see the old man come in each day with his skiff empty and he always went
down to help him carry either the coiled lines or the gaff and harpoon and the sail that was furled around the mast .
The sail was patched with flour sacks and, furled , it looked like the flag of permanent defeat .
The old man was thin and gaunt with deep wrinkles in the back of his neck .
The brown blotches of the benevolent skin cancer the sun brings from its reflection on the tropic sea were on his cheeks .
![Write a program that executes the following steps:
Reads the oldmanSea.txt and stores each word into a
set<string> container Novel
Reading SunHem.txt should use:
• getline(cin, WORD, '';
• where WORD is a string
Calculates the total number of unique words in this text
Calculates the number of characters in each unique word and
store this result I a histogram array, int Hist[20]
Hist[0] - contains the number of words having one
character
• Hist[1] - contains the number of words having two
characters
Hist[6] = contains the number of words having seven
characters
etc, etc ...
Print Histogram results
Calculates the number of words that start with an upper case letter
(numerical value of first letter < 92 && letter > 64 ) - Prints result](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F609191b6-0aff-477d-8910-61edd76acc39%2F3373130d-0913-4d0d-8345-f47c0400356a%2Fk5dcuyg_processed.png&w=3840&q=75)

Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images









