Question: Use 3 2 bit Assembly Language to build a number - guessing game with the following functionality a ) The program should generate a random

Use 32 bit Assembly Language to build a number-guessing game with the following functionality
a) The program should generate a random number between 1 and 50.
b) Have the program prompt the user to guess the number.
c) Once the user makes a guess, the program should inform the user whether the number is correct, too high, or too low.
d) If the number is too high or too low, the program should then prompt the user to try again.
e) Allow the user to continue to try until the correct number is guessed or 10 tries have been reached.
f) If the user enters a non-numeric value (or otherwise invalid) for any entry, an error message should be displayed and then that guess out of the 10 is spent.
g) If the correct value is reached, provide a congratulatory message and offer a play again option
h) If 10 tries are exhausted without a correct answer, display a message indicating that the number of tries has expired and give the correct value. Then offer a play again option.

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 Programming Questions!