Question: Write a MIPS assembly program that asks the user for an integer value five times saving each value to a separate register. Then using those

Write a MIPS assembly program that asks the user for an integer value five times saving each value to a separate register. Then using those five registers, your program should be able to correctly calculate the average of those values using integer division. A run of the program should look like the following (user input is shown in bold):

Please enter an integer: 5

Please enter another integer: 3

Please enter another integer: 5

Please enter another integer: 9

Please enter another integer: 10

The average of your numbers is: 6

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!