Answered step by step
Verified Expert Solution
Link Copied!

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)

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 to Expert-Tailored 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

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions

Question

6. Identify characteristics of whiteness.

Answered: 1 week ago

Question

9. Explain the relationship between identity and communication.

Answered: 1 week ago