subject

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()

ansver
Answers: 3

Another question on Computers and Technology

question
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
question
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
question
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
question
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
You know the right answer?
Create a function named CountVowels() that takes one parameter name epsilon (in the function)
...
Questions
question
Physics, 30.08.2019 02:30
question
Biology, 30.08.2019 02:30
question
Mathematics, 30.08.2019 02:30
Questions on the website: 13722367