Question
any experts? Programming questions I: MIPS Programming You are going to write a MIPS program that does the following (there is C++ sample code below
any experts? Programming questions
I: MIPS Programming You are going to write a MIPS program that does the following (there is C++ sample code below to explain the logic):
1) Create an array of 21 INTEGERS, you can put whatever you want in it, but they shouldnt be sorted. Without using recursion:
a. Create a procedure to find the largest called findLargest
b. Create a procedure to find the smallest called findSmallest.
c. Create procedure called range, which is the difference between largest and smallest (range should call findLargest and findSmallest)
2) Create a recursive procedure to find the largest (call it findLargestRecursive) (https://www.geeksforgeeks.org/recursive-programs-to-find-minimum-and-maximum-elements-of-array/ has an example of this in several higher level languages).
So something like this C++code, except you need to write it in MIPS #include "pch.h" //There's no equivalent to this in MIPS so ignore it #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started