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 bit Assembly Language to build a numberguessing game with the following functionality
a The program should generate a random number between and
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 tries have been reached.
f If the user enters a nonnumeric value or otherwise invalid for any entry, an error message should be displayed and then that guess out of the is spent.
g If the correct value is reached, provide a congratulatory message and offer a play again option
h If 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
