Question: C++ Help program this? Write a program that reads in a sentence from the user. But wait! That's not all it must do! Your program

C++ Help program this?

Write a program that reads in a sentence from the user. But wait! That's not all it must do! Your program should output the sentence with spacing corrected and with letters corrected for capitalization. In terms of spacing correctness, the output sentence should have all sequences of two or more blanks compressed to a single space - unless there were blanks at the beginning of the sentence. Blanks at the beginning of a sentence should be obliterated utterly! (Blank here can mean any type of spacing - space, tab, new-line, ...) The sentence should Start with an uppercase letter but should contain no other uppercase letters. (Do not worry about proper names: if their first letters are changed to lowercase, that's acceptable.) For simplicity, you may assume that the user's sentence ends in a period and contains no other periods (i.e. no abbreviations or such). $ sentence.out Welcome to the Style Stabilizing Program! Please enter your sentence (end with a period): the Answer to life, the Universe, and everything IS 42, Corrected, your sentence is: The answer to life, the universe, and everything is 42. Thanks for stabilizing your style with us today! Try to have a punctual day here-after! $

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!