Convert Java Code to MIPS $10-30 USD $10-30 USD Paid on delivery
class main_project1 {
static int Y1[] = {13, 101, 79, 23, 154, 4, 11, 38, 88, 45, 17, 94, 62};
static int lenY1 = 13;
public static void main(String[] args) {
quickSort(Y1,lenY1);
for(int i = 0; i<lenY1; i++)
[login to view URL](Y1[i] + " ");
[login to view URL]("\n");
}
public static void quickSort(int[] x, int n) {
qSort(x,0,n-1);
}
public static void qSort(int x[], int left, int right) {
int middle;
if (left < right) {
middle = partition(x, left, right);
qSort(x, left, middle);
qSort(x, middle+1, right);
}
}
public static int partition(int x[], int left, int right) {
int pivot, l, r, temp;
pivot = x[left];
l = left-1 ;
r = right+1 ;
while (true) {
do {r--;} while (x[r] > pivot);
do {l++;} while (x[l] < pivot);
if (l < r) {
temp = x[l];
x[l] = x[r];
x[r]= temp;
}
else
return r;
}
}
}
Project ID: 7094706
About the project 1 proposal
Remote project
Active 9 yrs ago
Looking to make some money? Email address Apply for similar jobs Benefits of bidding on Freelancer Set your budget and timeframe
It's free to sign up and bid on jobs
1 freelancer is bidding on average $50 USD for this job
Hi I am Dinh. Here is some my asm project in x86 and m68k And I have experience with mpis. Hope to work with u.
https://www.freelancer.com/projects/assembly-assembler/Assembly-programmin.html
https://www.freelancer.com/projects/Software-Architecture-Engineering/write-floppy-disk-software.html
$50 USD in 1 day
5.0 (13 reviews)