Question: please help. all others got it wrong. Find max in an array Given an array of a specific number of integers, write a program that

please help. all others got it wrong.
Find max in an array
Given an array of a specific number of integers, write a program that finds the largest integer and store the result in register $t2. Assume
$t0 stores the memory location of the first element of the array, and $t 1 stores the number of integers in the array.
Ex: If $t0 and $t1 are initialized in the simulator as 4000 and 5, and the content of the given array is:
the result is stored in $t2 :
Note: Use the 't' button under the Registers and Memory display to initialize $+0,$11, and the memory locations of the given array.
please help. all others got it wrong. Find max in

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 Programming Questions!