1. Write a console program similar to 'Hangman':
2. Create an array
of 10 words (you decide the words).
3. Randomly select a
word from the array.
4. Then prompt the
user to guess a letter of the word
5. Then if the
user's letter guesses matches any letter(s) in the word, then put the
letter guessed into the proper indices of another array and display the
contents at this point to the user.
Repeat till
either all letters are guessed or the user misses 3 times.
Include any necessary error handling.
Thanks in advance to any help.