Question: in MIPS assembly code. please explain. MARS High-Low Game Write a Mars program that lets the user play the High-Low guessing game. Hard code a

in MIPS assembly code. please explain. in MIPS assembly code. please explain. MARS High-Low Game Write a Mars

MARS High-Low Game Write a Mars program that lets the user play the High-Low guessing game. Hard code a number between 0 and 100 into memory location hide. The user is then given 5 guesses to determine the hard- coded number. For each guess the program must: If the guess is incorrect tell the user if the guess is above (high) or below(low) the "hidden" value and tell the user how many guesses remain. If the user guesses correctly, an appropriate congratulatory message should be displayed. If the user uses all their guesses display that they lost and tell them the hidden number Example outputs for two runs of the program: Suppose the hidden number is 50. **** Guess what number I have hidden(0-100). You can have 5 guesses. **** Enter your guess: 75 Your guess is high. Guesses remaining: 4 Enter your guess: 25 Your guess is low. Guesses remaining: 3 Enter your guess: 50 Congratulations! That is correct

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!