Question: // receives: list - array of ints and numElements - count of values in array list // returns: nothing // task: sorts list into ascending

 // receives: list - array of ints and numElements - count

of values in array list // returns: nothing // task: sorts list

// receives: list - array of ints and numElements - count of values in array list // returns: nothing // task: sorts list into ascending order (smallest to largest) public static void sortints(int [] list, int numElements) // receives: strList - array of Strings and numElements - count of values in array // returns: nothing // task: sorts list into ascending order (smallest to largest) according to name // case in-sensitive public static void sortStrings(String [] strList, int numElements) // receives: strList - array of String // numElements - count of values in array strList // strToFind - String to find index of in strList, case in-sensitive // returns: index of strToFind (first occurrence) in strList, -1 if NOT found // task: find string (case ignored) return index if found, - 1 if not public static int find(String [] strList, int numElements, String strToFind) Here is a general sorting algorithm (insertion sort) to use in your sort methods (adjust names and compares and temp used in swap). Insertion Sort ALGORITHM // assumes array of integers with numElements as #values in array to sort for(int index = 1; index 0) { if(array[k]

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!