Design and create a GUI program that allows the user to play hangman. The word t
ID: 675151 • Letter: D
Question
Design and create a GUI program that allows the user to play hangman. The word to be guessed should be randomly generated. The word when displayed on the screen should consist of asterisks. The user will then guess the word by entering one letter at a time. If the letter is correct it should be added in the appropriate position of the word. If incorrect a body part should be added to the hangman (the hangman will consist of a head, body, 2 arms and 2 legs). If the user does not guess the word after 6 attempts (based on body parts) then the word should be displayed. Whether the user wins or loses they should be given the option to play another game or not.
Explanation / Answer
The GUI for the hangeman program is as follows:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.