Question: Part A: Write MIPS assembly language program to sort ( in ascending order ) an array of N unsigned integer numbers stored in consecutive memory

Part A: Write MIPS assembly language program to sort (in ascending order) an array of N unsigned integer numbers stored in consecutive memory address using the bubble sorting algorithm. Furthermore, find the average of the N unsigned integer numbers in the array (assume the average is rounded up into integer value). Print out the array of numbers before and after sorting. Also print the average of the array you find (Avg=?). You can assume any memory address to store your array of numbers. In your report, clearly explain where your array of numbers before and after sorting are stored, and how the average of the array is calculated. Define a constant N in your code and use nested loop structure so that it can handle any number of data to be sorted. Add appropriate comments to the codes so that they are easily understandable. Print out your assembly program and attach it with your report.
 Part A: Write MIPS assembly language program to sort (in ascending

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!