Answered step by step
Verified Expert Solution
Link Copied!

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 period)should 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

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

Step: 3

blur-text-image

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