1. Word SeparatorWrite a program that accepts as input a sentence in which all of the words are run togetherbut the first character of each word is uppercase. Convert the sentence to a string in whichthe words are separated by spaces and only the first word starts with an uppercase letter.For example the string “StopAndSmellTheRoses.†would be converted to “Stop and smellthe roses.â€2. Pig LatinWrite a program that accepts a sentence as input and converts each word to “Pig Latin.†Inone version, to convert a word to Pig Latin you remove the first letter and place that letterat the end of the word. Then you append the string “ay†to the word. Here is an example:English: I SLEPT MOST OF THE NIGHTPig Latin: IAY LEPTSAY OSTMAY FOAY HETAY IGHTNAY3. Vowels and ConsonantsWrite a program with a function that accepts a string as an argument and returns thenumber of vowels that the string contains. The application should have another function that accepts a string as an argument and returns the number of consonants that the stringcontains. The application should let the user enter a string and should display the numberof vowels and the number of consonants it contains.