Question: Write a program I N C that will read from a random word from a text file (dictionary.txt) containing English words (one word per line).

Write a program IN C that will read from a random word from a text file (dictionary.txt) containing English words (one word per line). Continue to ask the user for a letter until the user has either guessed all the letters in the word, or until the word H-A-N-G-M-A-N has been completely filled out, whichever comes first. suppose the word program was randomly selected. Guess your next letter >> p

p - - - - - -

- - - - - - -

Guess your next letter >> g

p - - g - - -

- - - - - - -

Guess your next letter >> z

p - - g - - -

H - - - - - -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!