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, 22.06.2019 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 23.06.2019 01:00
Petrică, tânăr licean în clasa a ix-a, a primit în dar de la părinţii săi un cont bancar pentru micile sale cheltuieli curente. el este pasionat de internet banking şi îşi verifică cu grijă toate tranzacţiile efectuate. pentru creşterea securităţii tranzacţiilor online, banca îi furnizează lui petrică un număr pe care el va trebui să îl modifice, obţinând un număr tan – număr de autentificare a tranzacţiei (transaction authentication number). regula de obţinere a numărului tan este următoarea: se formează cel mai mic număr par din toate cifrele numărului furnizat de bancă. cerinţă cunoscând numărul n furnizat de bancă, să se determine numărul tan obţinut de petrică. date de intrare fişierul tan.in conţine pe prima linie numărul natural n cu semnificaţia din enunţ. date de ieşire fişierul de ieşire tan.out va conţine o singură linie pe care va fi scris numărul tan cerut. restricţii • 0 < n < 18*1018 • n are cel puţin o cifră pară • numărul tan obţinut nu poate conţine zerouri nesemnificative
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
You know the right answer?
Create a function named CountVowels() that takes one parameter name epsilon (in the function)
...
Questions
Questions on the website: 13722361