Final answer:
To fulfill the requirements of the program: create an array, populate it with random values, display the contents, sort the array, display the sorted contents, ask the user for animals, store them in a String array, sort the names alphabetically, and display the vowel counts.
Step-by-step explanation:
To write a program that fulfills the requirements of Part 1, you can create a new double array with a size of 10 and use a loop to populate it with random values. Then, you can use another loop to display the contents of the array before sorting it. After sorting, you can use a loop again to display the sorted contents. For Part 2, you can ask the user for five animals and store them in a new String array. You can then use an array-related method to sort the animal names alphabetically. To obtain the vowel counts, you should create a static method called vowelCount that takes an animal name as a parameter and returns the number of vowels found in the string. You can call this method from main to get the vowel counts which you will display.