Develop a MIPS procedure which will calculate the mean, median, and mode of the array A[n].

Develop a MIPS procedure which will calculate the mean, median, and mode of the array A[n].
December 19, 2019 Comments Off on Develop a MIPS procedure which will calculate the mean, median, and mode of the array A[n]. Course Work Assignment help

1). Develop a MIPS procedure which will calculate the mean, median, and mode of the array A[n]. you can assume the array is already sorted. Use the stack to pass the address of A and the size n to the procedure, and to return the three results.
2. Write mips code to implement the following C++ control structures. you may use a registers for each variable, but you should declare and initialize all variables needed.
int i=1;
do {i=i*2} while i < 256
char b;
int a;
//get a number from the user
if (a<3) b=’T’; else if (a<5) b=’M’; else b=’F’;

Tags