Question: Goal: Learn to replace characters in strings. Assignment: Recently, an epidemic of random capital letters has plagued our textbooks. Many phrases have random capitals in
Goal: Learn to replace characters in strings.
Assignment: Recently, an epidemic of random capital letters has plagued our textbooks. Many phrases have random capitals in the middle of the sentence or even words!
Write a program that prompts the user to enter some text, scan the text and fix the capitalization as follows:
The first letter of a sentence after a periodshould be capitalized;
The rest of the letters should be lowercase.
Note: Do not prompt the user with a message.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
