Question: Write a Matlab script that generate a number between 1 and 99. The script should enable the user to guess the number until the number
Write a Matlab script that generate a number between 1 and 99. The script should enable the user to guess the number until the number is found. Below is a an example of the output 2. >>GuessNumber Guess the number generated by the system between 1-99 50 you guess is LOWER the generated number, try again Guess the number generated by the system between 1-9980 you guess is LOWER the generated number, try again Guess the number generated by the system between 1 -99 90 you guess is LOWER the generated number, try again Guess the number generated by the system between 1-99:95 you guess is LOWER the generated number, try agairn Guess the number generated by the system between 1 -99 99 you guess is HIGHER the generated number, try again Guess the number generated by the system between 1-99 96 WELL DONE, you guessed the number in 6 tries
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
