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

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!