Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MIPS ASSEMBLY LANGUAGE (I'm using MARS) Create an array of maximum size of 100 elements. Ask the user to enter the number of elements and
MIPS ASSEMBLY LANGUAGE (I'm using MARS)
Create an array of maximum size of 100 elements. Ask the user to enter the number of elements and then the elements one by one. Perform the following operations by providing a menu (no GUI just comment based menu) to the user. Implement the following in the form of separate subprograms. In their implementation you may use St registers but make sure you also use $SO, $s1. and $s3. Make sure that you save them to the stack at the beginning of each subprogram a. Find summation of numbers stored in the array which is greater than an input number b. Find summation of numbers within a value range specified two numbers and display that value c. Display the number of occurrences of the array elements divisible by a certain input number d. Display number of unique numbers in the array. For example, if the array contains 1, 2, 3, 1, 5, 2; the number of unique numbers is 4 and they are 1, 2, 3 and 5 e. Quit. Optional: Use syscall with 9 in SvO for dynamic storage allocation for the arrayStep 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