Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a JAVA program to read 12 integers into an one-dimensional array. Sort the

ID: 3767444 • Letter: W

Question

Write a JAVA program to read 12 integers into an one-dimensional array. Sort the list in ascending order using Selection Sort and then print out the data it should output the index for the element (please seethe sample input/output)
Your program must consist of the following methods:
a.Method InputData: This method reads and stores the data in the one-dimensional array.
b.Method OutputData: This method will output the array after the Selection Sort.
c.Method SelectionSort: This method will sort the array in ascending order.
Sample Input/Output:
//Data: 4 23 65 34 84 37 12 17 24 36 82 51
Enter 12 integers.

4 23 65 34 84 37 12 17 24 36 82 51

Data after selection Sort:

4 12 17 23 24 34 36 37 51 65 82 84

Enter the search item: 37

37 is found at position 7

Explanation / Answer