Question: Use the following string to answer questions a through e. string sValue = Today is the first day of the rest of your life. a.

Use the following string to answer questions a through e.

string sValue =

"Today is the first day of the rest of your life."

a. Create a new string that has all lowercase characters except the word day. The word day should be set to all uppercase.

b. Create a new string array that contains the eleven elements. Each word from the sValue string should be in a separate array cell.

c. Remove the period from the last array element created in Step b.

Display the contents of the new array verifying its removal.

d. Surround the sValue string with three asterisks on each end.

e. Replace the word first with the word best in the sValue string.

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 Systems Analysis Design Questions!