In this project, you must implement a computer version of the game hangman. Your
program should randomly load each word from a text file which contains an integer,representing the number of words in the file, followed by each word, one per line. An example of such a file is the following:
The program should choose a word at random from the file and display that word
to the player with each letter replaced by a hyphen. The player should then be
allowed to guess a letter. If the letter has already been guessed, the program should alert the user to guess again without penalty. If the letter exists in the word, the program should reveal those letters in the hidden word. If the letter does not exist in the word, the program should increment the number of missed guesses by one. If all of the letters are revealed, the player wins. If the number of missed guesses becomes greater than 5, the player loses. The game should continue until one of those outcomes is reached.
My code will follow soon...