Question: Java Programming Language: 1) Create an integer array of size 10. Randomly populate the array with integer from 1 to 100 into the array. 2)
Java Programming Language:
1) Create an integer array of size 10. Randomly populate the array with integer from 1 to 100 into the array.
2) Apply Selection Sort to the unsorted array. Create a counter to count the number of iteration needed to complete the sort of of the array. Display the result of the array after the sort, and the counter.
3) Apply Merge Sort to the unsorted array. Create a counter to count the number of iteration needed to complete the sort of of the array. Display the result of the array after the sort, and the counter.
Please use comments to explain what is going on in the code, thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
