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

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

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!