need help with simple program

hi guys, need advice on wad i need to do for my current school assignment..
im suppose to create a hangman game and its suppose to look roughly like this..

1st of all i have managed to get the program to point to the txt file with 20 words for the user to guess in the file.

If user enters a number 3, the word to guess will be snoopy. Below is an example of the program display.

*** HANGMAN Guess a Word Game ***
Enter a number: 3
Current earnings $0
Max number of tries is 7
This guess is worth $220
*********************************

Word so far: --
Num of tries: 0 Incorrect guesses:
Pick a letter: e
Sorry no such letter

Word so far: --
Num of tries: 1 Incorrect guesses: e
Pick a letter: a
Sorry no such letter

Word so far: --
Num of tries: 2 Incorrect guesses: ea
Pick a letter: i
Sorry no such letter

Word so far: --
Num of tries: 3 Incorrect guesses: eai
Pick a letter: i
Error: Letter already guessed before

Word so far: --
Num of tries: 3 Incorrect guesses: eai
Pick a letter: o
Good guess

Word so far: --oo--
Num of tries: 3 Incorrect guesses: eai
Pick a letter: d
Sorry no such letter

Word so far: --oo--
Num of tries: 4 Incorrect guesses: eaid
Pick a letter: l
Sorry no such letter

Word so far: --oo--
Num of tries: 5 Incorrect guesses: eaidl
Pick a letter: n
Good guess

Word so far: -noo--
Num of tries: 5 Incorrect guesses: eaidl
Pick a letter: n
Error: Letter already guessed before

Word so far: -noo--
Num of tries: 5 Incorrect guesses: eaidl
Pick a letter: s
Good guess

Word so far: snoo--
Num of tries: 5 Incorrect guesses: eaidl
Pick a letter: p
Good guess

Word so far: snoop-
Num of tries: 5 Incorrect guesses: eaidl
Pick a letter: y
Good guess

Congratulations! The word is snoopy
You won $220
Current earnings $220
Press any key to continue or q to quit the program:

so currently im still trying to figure out what functions i need to use..any help would be greatly appreciated!
[2233 byte] By [Keith84] at [2007-11-20 11:22:38]
# 1 Re: need help with simple program
Get creative :) Each sentence you wrote for the output sounds like a decent name of a function:
getUserLetter(), isLetterInWord(), outputGuessSoFar(), etc.

Function names can be practically anything, so try and make them make sense for what you want the function to do. Sounds like a fun assignment!
mcmancsu at 2007-11-9 1:25:34 >