im doing a bit of programming with my spare time and im stuck with this one.i know its not a game but i would like some help from u guys.
i would like to write a programme that will read a sentence from standard input and output the sentence with spacing corrected and letters corrected for capitalization. in other words if the input sentence has spaces between words composed of more than one blank in the ouput sentence these spaces should be compressed into onto one single blank. the sentence should start with uppercase letter and then contain no other uppercase letter.
for example input is:
c++ is Hard
should produce this:
C++ is hard