Question: Please use C++ for this problem. Please refer to the samples as how the outout should look. Write a program that will read in a
Please use C++ for this problem. Please refer to the samples as how the outout should look.
Write a program that will read in a sentence of up to 100 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. The sentence should start with an uppercase letter, but should contain no other uppercase letters. Do not worry about capitalizing proper nouns. Assume that the sentence ensd with a period and contains no other periods. Sample: Enterasentenceofupto100characters:theanSWERtoLIFE,theUniverse,andEVERYTHINGis42. Theanswertolife,theuniverse,andeverythingis42.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
