Question: i need help with this question. It's c++. ///////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////// use and modify this code: #include #include using namespace std; int main ()
i need help with this question. It's c++.
/////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////
use and modify this code:
#include#include using namespace std; int main () { int c ; c = cin.get() ; do { cout.put(c) ; c = cin.get() ; } while ( !cin.eof()) ; }
modify that code so it takes an input of words and capitalizes the column in each word that is chosen on the command line interface and lowercase the rest of the words. So if I choose 1 it would capitalize the first letter in each word and lowercase the rest, if I choose 2 it would capitalize the second letter in each word and lowercase the rest. If I choose 3 it would capitalize the third letter of each word and lowercase the rest, and so on.
So if the input text is:
a larGE DOG ate my HomEwoRk
and I want the 3rd column to be capitalized, the output would be
a laRge doG atE my hoMework
thanks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
