Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started