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 ('a','e','i','o','u') 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
"thE_qUlck_brOwn_fOx_jUmps_OvEr_thE_IAzy_dOg!!!".
Note: Just use the method, functions that covered in the class. You can not use join function.(5 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 ('a','e','i','o','u') 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 "thE_qUIck_brOwn_fOx_jUmps_OvEr_thE_lAzy_dOg!!!".
DO NOT USE JOIN FUNCTION
Write a program that takes a sentence as input,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!