Question: In C++, Write a program that prompts the user to enter a string such as Hello World, I live at 678 San Diego. Read the

In C++, Write a program that prompts the user to enter a string such as Hello World, I live at 678 San Diego. Read the string and display the whole string first, then use string functions to display the following:

The length of the string

The character at index 8.

Turn the character at index 9 to upper case then display string again.

Check if the character at index 24 is a digit?

Display the ASCII code (integer value) for the character at index 10

Change the character 7 to 9 and display string again.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!