Can someone help me with this tutorial.
only have a background of how to creat a dynamic array in 4 steps but not other than that. And the question seems complicated more than only that. So kindly please someone help me and wxplain it to me.
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 string 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. Don’t worry about proper names, if there first letter are changed to lowercase, that is acceptable. Treat a line break as if it was a blank, in the sense that line break and any number are blanks are compress to a single blank. Assume that the sentence ends with a period and contains no other period. For example the input
the Answer to life, the universe, and everything
The answer to life, the universe, and everything is 42.
Following functions from might help:
1. str.insert(pos, str2)
2. str.erase(pos, length)
****Note that I haven't learnt the insert and erase functions yet.
I've no idea what will they do.