Question: Write a program that takes a sentence as input, where words are separated by spaces, and all the words are in a mix of uppercase
Write a program that takes a sentence as input, where words are separated by spaces, and all the words are in a mix of uppercase and
lowercase letters. The program should convert the sentence to a new string where all words are in lowercase, except for vowels aeiou which
should be in uppercase. There should be underscores between words instead of spaces. Additionally, ensure that the last word in the new string ends
with three exclamation marks
For example, if the input is "The quick Brown fox Jumps over the Lazy Dog", the program should output
"thEqUlckbrOwnfOxjUmpsOvErthEIAzydOg!!!".
Note: Just use the method, functions that covered in the class. You can not use join function. points Write a program that takes a sentence as input, where words are separated by spaces, and all the words are in a mix of uppercase and lowercase letters. The program should convert the sentence to a new string where all words are in lowercase, except for vowels aeiou which should be in uppercase. There should be underscores between words instead of spaces. Additionally, ensure that the last word in the new string ends with three exclamation marks
For example, if the input is "The quick Brown fox Jumps over the Lazy Dog", the program should output "thEqUIckbrOwnfOxjUmpsOvErthElAzydOg!!!".
DO NOT USE JOIN FUNCTION
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
