Create a function named CountVowels() that takes one parameter name epsilon
(in the function)
...
Computers and Technology, 20.11.2020 21:20 yclark98563p5z2gt
Create a function named CountVowels() that takes one parameter name epsilon
(in the function)
Create a variable name countNum and set it to zero
Create a for loop that with a lower bound of zero, upper bound of the length of epsilon, and increment of one
(in the loop)
Get the letter in epsilon at the index equal to the value of the looping variable
store this letter into a variable
if the letter is a vowel (a, e, i, o, u)
add 1 to the countNum variable
return countNum
Create a function named ExtractOdds() that takes one parameter name zeta
(in the function)
Create a variable name result and set it to a blank string
Create a for loop that with a lower bound of zero, upper bound of the length of zeta, and increment of one
(in the loop)
Get the letter in epsilon at the index equal to the value of the looping variable
store this letter into a variable
if the value of the looping variable is odd
update result by adding the letter to the end of result
return result
(Main code)
Have the user input a sentence and store the value in variable named sentence_A
Have the user input a sentence and store the value in variable named sentence_B
Call the method CountVowels() passing in sentence_A as a parameter
Print the value returned from calling CountVowels()
Call the method ExtractOdds() passing in sentence_B as a parameter
Print the value returned from calling ExtractOdds()
Answers: 3
Computers and Technology, 21.06.2019 23:30
You picked the corridor which led you here. if the guards find you, they're going to be really angry! what is the synonym of angry
Answers: 1
Computers and Technology, 22.06.2019 06:00
The width of a piece of rectangular land is 5m shorter rhan 1/3 of its length .find the width of the land if the length is 60m,150m.
Answers: 1
Computers and Technology, 23.06.2019 09:30
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe what
Answers: 1
Physics, 30.08.2019 02:30
Biology, 30.08.2019 02:30
History, 30.08.2019 02:30
History, 30.08.2019 02:30
Biology, 30.08.2019 02:30
History, 30.08.2019 02:30
History, 30.08.2019 02:30
Mathematics, 30.08.2019 02:30
Mathematics, 30.08.2019 02:30