Guessing Game in Matlab . When the program starts, a random whole number , n , is selected where : n >=1 and n < = 200 . The user enter "a guess" and the program displays * " higher " if the guess is less n * " lower " if the guess is great than n * " correct " if the guess is equal to n . The game continues until the user enters a correct guess and the program quits . When the program quits , the total number of guesses is displayed as the score. 2) it's a matlab question but do it in Octave or use octave to do the question 3) in 100 words explain how sections of the code function or explains how your program works.
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
1) Guessing Game in Matlab
. When the program starts, a random whole number , n , is selected where :
n >=1 and n < = 200
. The user enter "a guess" and the program displays
* " higher " if the guess is less n
* " lower " if the guess is great than n
* " correct " if the guess is equal to n
. The game continues until the user enters a correct guess and the program quits
. When the program quits , the total number of guesses is displayed as the score.
2) it's a matlab question but do it in Octave or use octave to do the question
3) in 100 words explain how sections of the code function or explains how your program works.
Step by step
Solved in 4 steps with 2 images