Question: Prepare a game called MysteryWordGame. The concept is as follows:
Part 1: Read in the included list of game words(words.txt) and store them into an array. There are 50 words so use that to set the size of your array accordingly.
Part 2: Pick a word at random from the array to be the word the user has to guess. Display to the user how many letters are in the word using dashes or underscores or something similar.
Part 3: Prompt the user to enter a letter. Check to see if the letter is in the word.
Part 4: If the letter is not in the word tell the user. Keep track of this fact because we're only going to give them 10 incorrect letters before the round is over.
Part 5: If the letter is in the word re-display the word with the letter shown in the correct position. Do not keep track of this otherwise as correct letters are considered free turns unlike incorrect letters.
Part 6: Continue prompting the user to enter letters until they have filled in the word or run out of turns. If they run out of turns (10 max) display the word.
Part 7: Ask the user if they want to play again and repeat or quit as indicated.
You should not use any wizard to prepare code, nor should you copy and paste from other source without cleaning it.