have to have this done by tomorrow and I'm having trouble understanding fully what I must do, tried fiddling with some code from a sample sheet and came up with this for a simple selection sort, I'f anyone can help me out in regards to properly answering this question fully I would be hugely gratefulCreate a sortingshowcase class that will demonstrate the use of TWO sorting algorithmsof your choice (from the ones we have covered, namely, selection, bubble andinsertion sort). This class should contain the follow:
· A method for each sortalgorithm being demo’d that receives an unsorted array and modifies the arrayso that it becomes sorted.
· A method to display the elementof an array
· A main method to test that thesorting algorithms are working correctly, i.e. create some sample arrays, printthem before and after the sorting algorithms were called
class sortingshowcase{
for(int x=0; x<n; x++)
{
int index_of_min = x;
for(int y=x; y<n; y++)
{
if(array[index_of_min]>array[y])
{
index_of_min = y;
}
}
int temp = array[x];
array[x] = array[index_of_min];
array[index_of_min] = temp;
}