Question: Write a MIPS program that takes up to 20 integers as input from the user using the array frontend and outputs the integers in descending



Write a MIPS program that takes up to 20 integers as input from the user using the array frontend and outputs the integers in descending order of value separated by spaces. The code that does not work with the array frontend will not receive any marks. (Hint: Look at the Selection Sort example given below) For example, if the user enters integers 7, 29, 34, 1, 3 one by one using the array front end, the program outputs: 34 2973 1 Make sure you think about corner cases when writing your code. Note only use following instructions .word/add/sub/mult/multu/div/divu/mfhi/mflo/lis/lw/sw/slt/sltu/ beq/bne/ir/jalr
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
