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:
1. Using the provided skeleton code, write the Hangman program described below
a. Prompt Player 1 for a secret word for Player 2 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. i.e hello would be _____
c. Prompt Player 2 to enter a letter
i. If the letter is in the secret word...
1. Replace the appropriate dash(es) with the letter
a. i.e. guessing l in hello would be __ l l _
2. Prompt the user for another letter until the word is finished or they lose
ii. If the letter is not in the secret word...
1. Print 1 letter from the word HANGMAN to the screen
a. If the entire word HANGMAN is printed, the game is over
2. Prompt the user for another letter until the word is finished or they losei.g f -...c ..\
Skeleton.c
#include
Assignment: 1 . Using the provided skeleton code,

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 Programming Questions!