Program Assignment #4 Write a program that plays an interactive game of Hangman
ID: 3547464 • Letter: P
Question
Program Assignment #4
Write a program that plays an interactive game of Hangman with its user. In general, the
rules of Hangman are as follows:
? The object of the game is for the user to guess a secret word, given the number of
letters in the word. The number of letters is presented as a series of dashes or
underscores, like this: _ _ _ _ _ _
? At each turn, the user guesses one letter. If the guess is correct, the letter is
displayed in the correct position for the user to observe, like this: M _ _ M _ _
? If the guess is incorrect, the user