Question: Instructions Write a program that reads a list of words provided by the program user and with each word along with the following, as needed:

Instructions
Write a program that reads a list of words provided by the program user and with each word along with the following, as needed:
The uppercase letters in that word.
Every second letter.
The number of vowels in that word. For this exercise, assume that a e i o u are vowels.
The positions of all vowels in that word.
the word after replacing all vowels in the word with an underscore
Your program should
Be implemented into several methods, such that each method performs a single task from the ones listed above.
Store the list of words in a data structure 'List' and pass it as an argument to each one of these methods, as needed.
Print a menu listing the tasks as menu items and ask the user to choose which task to perform.
Hints:
Using a Python built-in method to do the work for you is not allowed. For example, if Python has a built-in method that computes the number of vowels, do not use it. Write your own.
The 'main' method has to be implemented to collect the user input ( a list of words) and store them in a data structure 'list'
Write a complete program to test your method.
Expected output
Given a list of words ["Welcome!", "Hello World!"], the output should be as follows:
Welcome with uppercase letters: W
Hello World with Uppercase letters: H, W
Welcome with the second letter: e
Hello World with the second Letter: e,o
Welcome with replaced vowels: W_lc_m_
Hello World with replaced vowels: H_ll_, W_rld!
Welcome with a number of vowels: 3
Hello World with a number of vowels: 3
Welcome with vowel positions being : [1,4,6]
Hello World with vowel positions: [1,4,7]
Hints: The above printing format is just a sample demonstrating how your program output should be formatted, but it is unnecessary to be the same. That said, it depends on the user's main menu selection. The user may only choose the option that directs the program to perform the task that finds the capital letters and the other that finds the number of vowels. In this case, only the program should produce the reverent output and not all the program tasks' outputs.

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!