Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use C-strings thank u so much! 5.8 CIS 22B Lab - Sentence Capitalizer Sentence Capital Complete the program that capitalizes the first letter of

please use C-strings thank u so much!
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
5.8 CIS 22B Lab - Sentence Capitalizer Sentence Capital Complete the program that capitalizes the first letter of every sentence The program contains a function prototype for the function ramed sentence the function receives a string as the power The function does not have any value to retum The main function reads a strong from the user and then displays the string as in the cel sentimeetritale to perform the function and prints the result afterwards Your job is to write the function definition for sentenceCaptaice In the function body, walkthrough the string one postion at a time. For each character in the wing determine whether in the first letter of a sentence and capitalize it accordingly The sentences may be separated with no space any number of spaces. You algorithmshoud not assume that the festetter is always one space away from the previous end of a sentence marke An end of marier could be a period () question mark) or an escalation point Test the program with this input (including the banks at the beginning) no, not tonight It's a very popular place and you have to make stations in advance beldes. It's anive, and I don't have any money: The output should look exactly as follows The text bore the modificationth, not tonight. I very popular place and you have to are reservations in advance, besides, its expensive, and I don't have any may The text at the modifications No, not tonight. It's very popular place and you have to make reservations in advance to it's expensive, and I don't have any money. 0/10 LA ACTIVIT 58 1150 Ln ln t t main.cpp Download main.cpp Load 9 #include 12 #include 13 14 using namespace std; 15 16 void sentenceCapitalizer(char "userString): I 17 18 int mainot 19 const int MAX_SIZE - 1024; 28 21 char userString[MAX_SIZE]: 22 23 //get user string Run your program as often as you'd like, before submitting for grading. Below, type any needed Develop mode Submit mode input values in the first box, then click Run program and observe the programis output in the second box Enter program input (optional) no, not tonight. It's a very popular place and you have to make reservations in advance besides, it's expensive, and I don't have any main.cpp Download main.cpp 1/print userString uncapitalized cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+ Should the MNE belong (why, why not)?

Answered: 1 week ago

Question

=+ What is the role of government in bargaining?

Answered: 1 week ago