Question: Write code and solve in Matlab Write a program using a while loop that will have the user begin with a number and then have

Write code and solve in Matlab
Write a program using a while loop that will have the user begin with a number and then have them keep guessing till they get the correct answer. Tell the user that they either need to go up or down. For example, if the correct number is 20 and the user picks 10, you will prompt to the command window, "please enter a higher value." Continue with the prompts till the user enters the correct answer. Note: Have matlab create a random integer between 0 and 100 to use as the number the user is guessing.
Write code and solve in Matlab Write a program

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!