Answered step by step
Verified Expert Solution
Link Copied!

Question

00
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)

image text in transcribed

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 array

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is meant by planning or define planning?

Answered: 1 week ago

Question

Define span of management or define span of control ?

Answered: 1 week ago

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago