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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started