subject

Write a java method called vowelcount that accepts a string as a parameter and produces/returns an array of integers representing the count of each vowel in the string. the array returned by your method should hold five elements: the first is the count of the 'a's, the second is the count of 'e's, the third 'i''s, the fourth 'o's and the fifth the number of 'u's. your count should check for both upper and lower case versions. for example the call vowelcount("i think therefore i am") should return the array [1,3,3,1,0].your main program should then allow the user to type in single lines, analyzing each line and print out its count. the program should stop when the user types the word "stop" by itself.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
What are some ways to use a range name in a formula? check all that apply. in the defined names group, click use in formula, and then select the desired name. begin typing the name in the formula, select a name from the autocomplete list, and use the arrow keys and tab key to enter the name in the formula. begin typing the formula, and then click and drag with the mouse to select the cells to include in the formula. right-click one of the cells in the range. click formula options, and use the dialog box to add the name.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Nikki sent flyers in the mail to all houses within the city limits promoting her computer repair service what type of promotion is this and example of
Answers: 1
You know the right answer?
Write a java method called vowelcount that accepts a string as a parameter and produces/returns an a...
Questions
question
Mathematics, 22.10.2020 01:01
question
Medicine, 22.10.2020 01:01
question
Arts, 22.10.2020 01:01