Question: Write an Assembly Language program that generates a random number between 0 to 9, then ask user to choose a number from 0 to 9.

Write an Assembly Language program that generates a random number between 0 to 9, then ask user to choose a number from 0 to 9. If the user chooses the same number as the random number, output You

Write an Assembly Language program that generates a random number between 0

Win! Congratulations! It took you x tries!" (where x is how many times the user tried to get the correct number). If user choose a smaller number to the random number, output "Your guess is too low, try again If user choose a larger number to the random number, output "Your guess is too high, try again!". If user choose a number smaller than 0 or greater than 9, output "Invalid input, try again. and this is not count as a try. The game keeps repeating till the user chooses the correct number. A Sample Scenario: Guess a number (0 to 9): Your guess is too low, try again! Guess a number (0 to 9) Your guess is too high, try again! Guess a number (0 to 9 100 Invalid input, try again! Guess a number (0 to 9 You Win! Congratulations It took you 3 tries

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!