Question D 3 Marks Sort Increasing Order Wsing Following Method Aysortmethod Public Class Q37139231

A = [-2,5,87,7,4,0,2]

. (Question D, 3 marks] Sort A in increasing order wsing the following method aySortMethod public class Sort private void sva

. (Question D, 3 marks] Sort A in increasing order wsing the following method aySortMethod public class Sort private void svap(int ] a, int i, int j)f temp ali]; ali] alj]; aljl -temp; int temp; public void mySortHethod (int al, int size)( int i,j; for (j-1; j<size; jtt)( for (i-size-1; i>j; i–)( if (ali-1] >a[i])C this.svap(a, 1-1, 1); Illustrate your operations. 12 Show transcribed image text . (Question D, 3 marks] Sort A in

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.