Question: MIPS ASSEMBLY LANGUAGE (I'm using MARS) In this subprogram, I need to find the median of the array. I already have a dynamically allocated array

MIPS ASSEMBLY LANGUAGE (I'm using MARS)

MIPS ASSEMBLY LANGUAGE (I'm using MARS) In this subprogram, I need to

In this subprogram, I need to find the median of the array. I already have a dynamically allocated array and a subprogram to sort it in ASCENDING order. It receives the beginning adress of the array in ($a0) and the size in ($a1).

MIPS ASSEMBLY LANGUAGE (I'm using MARS)

3. (15 points) medianMode: Write a subprogram, called medianMode, to return the median value of a sorted integer array. It receives array address and array size. If there is more than one mode it returns the smaller value. For example, the array 3, 3,4,4, 5 has two modes 3 and 4; for this array it returns 3. 3. (15 points) medianMode: Write a subprogram, called medianMode, to return the median value of a sorted integer array. It receives array address and array size. If there is more than one mode it returns the smaller value. For example, the array 3, 3,4,4, 5 has two modes 3 and 4; for this array it returns 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!