Question: Create a MIPS program that fulfills the following specifications: in the .data section: 3 variables to hold input values: a, b, c 3 variables to

 Create a MIPS program that fulfills the following specifications: in the

Create a MIPS program that fulfills the following specifications: in the .data section: 3 variables to hold input values: a, b, c 3 variables to hold output values a variable to hold the user's name 3 variables for messages: prompt for name prompt for integers message for results (similar to the sample run below) in the .text section write instructions to: prompt the user for their name and save it 3 times: prompt user for an integer between 1-100 read and store the integer calculate ans1 = (a + 2) + (b - 5) and store the result calculate ans2 = 5*a - b + 10 and store the result calculate ans3 = a + b/2 and store the result display the user name and message for results display the 3 results but print a space character in between for readability at the bottom of your program, add comments with test values for a, b, c and the results you expect from the program for ans1, ans2, ans3 (see sample run below)

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!