The user is going to cin a whole bunch of regular text. You store each word based on its first letter. Print out all the words they used by letter. Strip all punctuation and capitalize everything.

Don't forget - you can use any resource short of other people and copying code of the internet. If you can't remember how to use cin to pull words off a sentence, look it up. In the first page of search results I see three different ways to do it. No I'm not saying what they are.

Sample Output:

Input:
I asked my doctor how long I had to live. She said five. I said "Five what?" She said four...
Output:
A
Asked

B

C

D
Doctor

E

F
Five Five Four

G

H
How Had

I
I I I

J

K

L
Long Live

M
My

N

O

P

Q

R

S
She Said Said She Said

T
To

U

V

W
What

X

Y

Z
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.