Question: Write a program that asks the user to input a string that ends with a period and where the words are separated by a

 Write a program that asks the user to input a string that  

Write a program that asks the user to input a string that ends with a period and where the words are separated by a space. Your program should consist of a function that will return a new string in which each word starts with a capital letter. Display the resulting string in the main function. Example of program execution: Please input a string: What a wonderful day. Result: What A Wonderful Day. Please input a string: This thing really works. Result: This Thing Really Works.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the code for capitalizing every word of the given sentence ... View full answer

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 Programming Questions!