Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#include<cctype> using namespace std; void Capitalize(char *sentencePrt); void m

ID: 3617462 • Letter: #

Question

#include<cctype>

using namespace std;

void Capitalize(char *sentencePrt);

void main()

{

const int size=30;

char String1[size];

cout<<"Enter String up to (20)characters. ";

cin.getline(String1,size);

Capitalize (String1);

cout<<String1<<endl;

system("pause");

}

void Capitalize(char *sentencePrt)

{

int i = 0, j;

if(sentencePrt[i] > 97&& sentencePrt[i] < 112)

{

sentencePrt[i] -= 32;

}

for (i = 0; i <strlen(sentencePrt); i++)

{

j = i;

if(sentencePrt[i] =='.')

{

j++;

if(sentencePrt[j] =='')

{

j++;

}

if ((sentencePrt [j] > 97&& sentencePrt[j] < 112))

{

sentencePrt[j] -= 32;

}

}

}

}

Explanation / Answer

//Hope this will help you. #include #include #include #include using namespace std; void Capitalize (char *sentencePrt); int main() { const int size =30; char String1[size]; cout