Question: (PLEASE HELP) Write a program in MIPS assembly : Guessing game where the correct value is 6 and the user has 4 guess trials guessing

(PLEASE HELP) Write a program in MIPS assembly:

Guessing game where the correct value is 6 and the user has 4 guess trials guessing from integers 1 to n where n=10. If the user guesses the value '6' (which is the correct value) then the program will print 0, if the user guesses a value less than the correct then the program will output -1, and if higher then the program will output 1.

(PLEASE HELP) Write a program in MIPS assembly: Guessing game where the

-1: The number I picked is lower than your guess (i.e. pick num). 0: The number I picked is equal to your guess (i.e. pick num). . == Input: n = 10, pick = 6 Output: Guess 1: 5, result 1: 1 Guess 2: 8, result 2:-1 Guess 3: 7, result 3: -1 Guess 4: 6, result 4: 0 Final result: 6

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!