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 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
Here is the code for capitalizing every word of the given sentence ... View full answer
Get step-by-step solutions from verified subject matter experts
