Question: ii implment in C++ CMPE 50-Fall 2018 Lab #4-C-strings and string class. Exercise 1 (Progr. Proi.: 8.1) (Use C-string to solve this problem.) Write a

iiii implment in C++ CMPE 50-Fall 2018 Lab #4-C-strings and string class.Exercise 1 (Progr. Proi.: 8.1) (Use C-string to solve this problem.) Write

implment in C++a program that reads in a sentence of up to 100 characters

CMPE 50-Fall 2018 Lab #4-C-strings and string class. Exercise 1 (Progr. Proi.: 8.1) (Use C-string to solve this problem.) Write a program that reads in a sentence of up to 100 characters and outputs 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 proper names; if their first letters are changed to lowercases, that is acceptable. 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 TMe for aLl gooD MEN TO ComE TO tHe ald OF ThE CounTRY should produce the following output Now is the time for all good men to come to the aid of the country

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!