Question: Write a MIPS assembly language program that prompts the user to input 2 integers and then a string of length 1 that must be either

Write a MIPS assembly language program that prompts the user to input 2 integers and then a string of length 1 that must be either +, -, * or /. Depending of the string input, your program should print out the result of the specified operation (+, -, *, or /) when applied onto the two inputs. For example, if the inputs are 6, 4, and -, then your program should print out 2. You do not need to validate the user input.

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!