Develop a program, which allows a user to play the Hangman game. The user chooses the letters they hope will make up the secret word. The user has a total of ten guesses (increase the number of guesses if the word is longer than 10 characters) and correct letter guesses will replace the asterix on the output screen.
The word, which the user must guess, can be hard-coded into the program (e.g. Twinkle). The program should use instantiable classes.
The Hangman class should be broken down into a number of methods. The mainHangman class should handle the GUI. A version of the game may be downloaded from the intranet if desired.