Question: Write an application that allows you to initialize and use a one-dimensional array of 15 double numbers.. Create and call the method which initializes the
Write an application that allows you to initialize and use a one-dimensional array of 15 double numbers.. Create and call the method which initializes the array with random numbers generated by the Java Random class. Create and use the custom method to sort the array values in a descending orderThen create and use the custom method to sort the array in an ascending order. Do not use any of the prebuilt sorting methods of the Array class any sort type must be implemented by you from scratch, using e.g., bubble sort algorithm , binary sort algorithm or others. Write a separate displayArray method that takes the sorted array as an argument and displays the array element values, first time you will use this method to display descending order array values, the second time you will use this method to display ascending order array values. Make your application user friendly and explain to potential users what they see ( array of randomly generated values, sorted array values in descending order, sorted array values in ascending order).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
