Question: Assignment: 1 . Using the provided skeleton code, write the Hangman program described below a . Prompt Player 1 for a secret word for Player
Assignment:
Using the provided skeleton code, write the Hangman program described below
a Prompt Player for a secret word for Player to guess
i Use fgets instead of scanf
ii Clear the screen afterwards
b Print as many underscores as there are letters in the secret word
i ie hello would be
c Prompt Player to enter a letter
i If the letter is in the secret word...
Replace the appropriate dashes with the letter
a ie guessing l in hello would be l l
Prompt the user for another letter until the word is finished or they lose
ii If the letter is not in the secret word...
Print letter from the word HANGMAN to the screen
a If the entire word HANGMAN is printed, the game is over
Prompt the user for another letter until the word is finished or they losei.g f c
Skeleton.c
#include
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
