Question: I need help writing this code in java. Part 2 (5 pts) - Now, ask the user for five animals. Store the answers in a

I need help writing this code in java.

Part 2 (5 pts) - Now, ask the user for five animals. Store the answers in a new String array. Then, display the animal names in alphabetical order, along with their vowel counts (just consider a,e,i,o,u as vowels for now). Additional requirements: As part of your solution, you must create a static method called vowelCount that takes an animal name as a single String parameter. The method will return the number of vowels found in the String provided. You must call this method from main to obtain the vowel counts you will display. As usual, refer to the Sample Output to clarify the required output of your program.

I need help writing this code in java. Part 2 (5 pts)

Now, let's talk about animals... Name five animals: Animal 1: zebra Animal 2 horse Animal 3 platypus Animal 4 duck Animal 5 aardvark Your animals, in alphabetical order, are aardvark, which contains 3 vowels duck, which contains vowels horse, which contains 2 vowels platypus, which contains 2 vowels zebra, which contains 2 vowels BUILD SUCCESSFUL (total time 38 seconds)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!