Texts: Secondary school computing. Need step solution. Thanks in advance. Appreciated!
You have been asked to write a program to count the number of vowels in a word.
Vowels are the letters 'a', 'e', 'i', 'o', and 'u'.
The program must:
- Ask the user to enter a word and store the input.
- Repeatedly take input of a new word until it only contains letters.
- Convert the word to lowercase.
- Count the number of vowels in the word, e.g. "processor" contains 3 vowels: o, e, o.
The program must display:
- "There are no vowels in the word." if there are no vowels in the word.
- "There is one vowel in the word." if there is only one vowel in the word.
- "There are [insert vowel count] vowels in the word." The [insert vowel count] must be replaced with the number of vowels in the word.
Write a program to meet the requirements. Save your program as VOWELCOUNT_2021_<your name>_<centre number>_<index number>.py. [6]
Save your program as HIGHESTCOUNT_2021_<your name>_<centre number>_<index number>.py.
Extend your program to:
- Ask the user to enter 5 words.
- Count the number of vowels in each word.
- Store words that have more than two vowels in a list.
- Calculate the total number of vowels in all 5 words entered.
Your program must still:
- Repeatedly take input of a new word until it only contains letters.
- Convert each word to lowercase.
After all the 5 words have been entered, your program must:
- Display the word with the highest number of vowels (if there are multiple words with the highest number of vowels, displaying any one of the words will be sufficient).
- Display the list of words that have more than two vowels.
- Display the total number of vowels in all 5 words that are entered.
Your program does not need to display these previous output messages:
- "There are no vowels in the word."
- "There is one vowel in the word."
- "There are [insert vowel count] vowels in the word."
Your program must include appropriate input and output messages.