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 08:00
What best describes a career pathway in a lodging career? a worker starts out as an amusement attendant, then becomes a recreation worker, and then becomes a gaming worker within five years. a worker starts out as a bell hop, then becomes a night clerk, and then becomes a hotel manager within five years. a worker starting out as a tour guide, then becomes a travel clerk, and then becomes a travel agent within five years. a worker starts out as a server, then becomes a food preparer, and then becomes a head chef within five years.
Answers: 1
question
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Why would a business likely use a java applet - to back up their data files for the business - to create a program that a customer can launch in their web browser - to create music on a powerpoint presentation - to organize files on their company directory
Answers: 3
You know the right answer?
Create a function named CountVowels() that takes one parameter name epsilon (in the function)
...
Questions
question
Mathematics, 09.10.2019 17:30
question
History, 09.10.2019 17:30