Question: Use C - string to solve this problem. Write a program that reads in a sentence of up to 1 0 0 characters and output
Use Cstring to solve this problem.
Write a program that reads in a sentence of up to characters and output the
sentence with spacing corrected and with letters corrected for capitalization. In
other words, in the output sentence, all strings of two or more blanks should be
compressed to a single blank. All the words in the sentence should start with an
uppercase. Treat a line break as if it were a blank space, in the sense that a line
break and any number of blank spaces are compressed to a single blank space.
Assume that the sentence ends with a period and contains no other periods. For
example, the input
now is the TiMe for aLl
gOOD MEN TO COME TO tHe
aId
ThE CounTRY.
should produce the following output:
Now Is The Time For All Good Men To Come To The Aid of The
Country.
char arr;
cin.getlinearr; use as the delimiter
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
