Question: solve on matlab and upload the code, follow all the steps please Part A: Hangman In this part you will implement a simple game of

 solve on matlab and upload the code, follow all the steps
please Part A: Hangman In this part you will implement a simple
solve on matlab and upload the code, follow all the steps please

Part A: Hangman In this part you will implement a simple game of Hangman. When a user plays hangman, the computer first selects a secret word at random from a list of words built into the program. The program then prints out a row of dashes. One for each letter in the secret word and asks the user to guess a letter. If the user guesses a letter that is in the word, the word is redisplayed with all instances of that letter shown in the correct positions. Along with any letters correctly guessed on previous turns. If the letter does not appear in the work, the user is charged with incorrect guess. The user keeps guessing letters until either the user has correctly guessed all the letters in the word, or the use has made 6 incorrect guesses. A sample run that illustrate the play of the game is shown in figure 1. Your Job is to write a MATLAB program that handles the user interaction with the game. Your program must be able to: Chose in random word to use as the secret word, the word is chosen from a word list. Keep track of the user's partially guessed word, which begins as a series of dashes and then gets updated as correct letters are guessed, Implement the basic control structure and manage the details by asking the user to guess a letter, keep track of the number of guesses remaining, printout the various messages, detect the end of the game and so forth More requirements: Validate the input of the user. The input should only be a single character. Liste functions in building the structure of the program Welcome to an Try to guess the sert word e letter at a tim Decret Wonde Letters Gereeds Gorening: 5 tys Tea deeret Mode Let used Gunnars Sext Nope! Secret Wonde Letters and Guess remaining Net Letter Guess do te HOME Hope word Le Guess Leto: TE Part A: Hangman In this part you will implement a simple game of Hangman. When a user plays hangman, the computer first selects a secret word at random from a list of words built into the program. The program then prints out a row of dashes. One for each letter in the secret word and asks the user to guess a letter. If the user guesses a letter that is in the word, the word is redisplayed with all instances of that letter shown in the correct positions. Along with any letters correctly guessed on previous turns. If the letter does not appear in the work, the user is charged with incorrect guess. The user keeps guessing letters until either the user has correctly guessed all the letters in the word, or the use has made 6 incorrect guesses. A sample run that illustrate the play of the game is shown in figure 1. Your Job is to write a MATLAB program that handles the user interaction with the game. Your program must be able to: Chose in random word to use as the secret word, the word is chosen from a word list. Keep track of the user's partially guessed word, which begins as a series of dashes and then gets updated as correct letters are guessed, Implement the basic control structure and manage the details by asking the user to guess a letter, keep track of the number of guesses remaining, printout the various messages, detect the end of the game and so forth More requirements: Validate the input of the user. The input should only be a single character. Liste functions in building the structure of the program Welcome to an Try to guess the sert word e letter at a tim Decret Wonde Letters Gereeds Gorening: 5 tys Tea deeret Mode Let used Gunnars Sext Nope! Secret Wonde Letters and Guess remaining Net Letter Guess do te HOME Hope word Le Guess Leto: TE

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!