Question: Write an assembly program titledYourLastName_Program4 that forms a 2-D array, 5x3 based on predetermined values of your choosing. The program will then print out the

Write an assembly program titled"YourLastName_Program4" that forms a 2-D array, 5x3 based on predetermined values of your choosing.

The program will then print out the array for the user to see and then present the user with a menu with the following options:

1. Replace a value

2. Calculate the sum of all values

3. Print out the 2D array

4. Exit For the first option your program should then ask the user for which row and column in the array to replace, and what value will it be replaced with.

For the second option your program should run through all values held in the 2D array and calculate their summation.

For the third option your program should print out the contents of the 2D array one row at a time.

When given the fourth option your program should simply exit.

Remember, this course will use the SPIM emulator for MIPS processors.

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