Write a MIPS programme Given an array A with 8 integers (in words), the 8 elements of the array are defined based on your student ID no. as follows, Assume your student ID no. is XXXXXXXXXX, then the...


Write a MIPS programme


Given an array A with 8 integers (in words), the 8 elements of the array are defined based on your student ID no. as follows,
Assume your student ID no. is 12345678, then the array A is defined as, A = [1 -2 3 -4 5 -6 7 -8]
Calculate the followings in the array A using for loop.




i. Half of the sum of all elements (i.e. sum of all values /2)
ii. sum of all positive elements
iii. sum of all negative elements



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here