Write a method that returns the index of the smallest element in an array of integers. If the number of such elements is greater than 1, return the smallest index. Use the following header: public static int indexOfSmallestElement(double[] array). Write a test program that prompts the user to enter ten numbers, invokes this method to return the index of the smallest element, and displays the index.