Course Solutions Uncategorized (Solved) : Give 100 Thumbs Perfect Need Fix Code Make Selection Sort Sorts Part 1 Public Class Mysel Q32966956 . . . .

(Solved) : Give 100 Thumbs Perfect Need Fix Code Make Selection Sort Sorts Part 1 Public Class Mysel Q32966956 . . . .

 

Will give 100% Thumbs up if its perfect. Need to fix this codeto make a selection sort that sorts this: .

PART 1:

public class MySelectionSort {

    public static int[] doSelectionSort(int[]placer){
         
        for (complete the loop)
        {

           //writethe nested for loop and use ifstatement  to search for place to put currentelement

            intsmallerNumber = placer[index];

          //copy the placer into this newarray “SmallNumber”

            placer[index]= placer[i];
            placer[i]= smallerNumber;
          
        }
        System.out.println(“Sortednumber”);
        returnplacer;
    }
     
    public static void main(String a[]){
         
        int[] arrayOne ={10,34,2,56,12,64,18,14,43,52,69,
                     7,67,88,42,27,45,6,19,39,34,51,70};
        int[] arrayTwo =doSelectionSort(arrayOne);
        for(inti:arrayTwo){
            
            System.out.print(i);
            System.out.print(“,”);
        }
    }
}

———-

This is what i have so far. Incorrect

public class MySelectionSort {
  
public static int[] doSelectionSort(int[] placer){
int i, j;
  
for ( i = 0; i < placer.length – placer.length; i++);
{
//write the nested for loop and use if statement to

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post