Question: Create a MIPS program compatible with QtSpim that asks for user input of x and y and prints the added result. The program must also

Create a MIPS program compatible with QtSpim that asks for user input of x and y and prints the added result. The program must also make sure the user only enters integer values, otherwise it prints out an error message if the input is a letter or symbol (a, b, $, #, etc.) , and the program is restarted.

example:

Enter x value: 1

Enter y value: &

Sorry, only itenger values, try again.

Enter x value 1:

Enter y value: 2

Result is: 3

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!