Chapter 8: Problem 26
Use the following string to answer questions a through e. string茠sValue茠=茠鈥淭oday茠is茠the茠first茠Day茠of茠鈥 茠茠茠茠茠茠茠茠茠茠茠茠茠茠茠茠+茠鈥渢he rest of your茠life.鈥 a. Create a new string that has all lowercase characters except the word Day. Day should be all uppercase. b. Create a new string array that contains the eight 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 con- tents 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.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.