Question: This is for a 100 level college course on programming in MATLAB. 1 (a) (5 points) Write a Guess My Number Game program in MATLAB.

This is for a 100 level college course on programming in MATLAB.  This is for a 100 level college course on programming in

1 (a) (5 points) Write a "Guess My Number Game" program in MATLAB. The program generates a random integer in a specified range, and the user (the player) has to guess the number. The program allows the user to play as many times as she/he would like; at the conclusion of each game, the program asks whether the player wants to play again The basic algorithm is as follows. The program starts by printing instructions on the screen. For every game: the program generates a new random integer in the range fronm MIN to MAX. Treat MIN and MAX like constants; start by initializing them to 1 and 100 loop to prompt the player for a guess until the player correctly guesses the integer . for each guess, the program prints whether the player's guess was too low, too high, or correct the conclusion (when the integer has been guessed): print the total number of guesses for that game and print a message regarding how well the player did in that game. For example, if you took 1 to five uesses, you were awesome; 6 - 10 guesses, you were ok; and more than 10 guesses, you were weak (b) (5 points) Play the game 10 times. After the first 10 games have been played, plot a histogram showing how many times you did awesome (score 1), how many times you did ok (score 2) and how many times your performance was weak (score 3). On the plot, show the average number of guesses, and the standard deviation of your scores

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!