Question: THE PROGRAM BEING USED IS MATLAB Create a guessing game that will run until the user guesses the correct number. Present brief instructions for the
THE PROGRAM BEING USED IS MATLAB

Create a guessing game that will run until the user guesses the correct number. Present brief instructions for the user, generate one random number between 1 and 10, inclusive, allow the user to guess the random number, after each guess, tell the user if their guess was too high, too low, or correct. Upon completion of the program, display how many attempts it took to get the right answer. See the example output below for reference: Enter a guess: 2 Incorrect, your guess was too low. Enter a guess: 8 Incorrect, your guess was too high. Enter a guess: 4 Congratulations! You guessed the right number! It took you 3 tries to guess correctly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
