Question: modify the guessing game from week 4 by adding a counter that will count the number of guesses for each player. When the game is

modify the guessing game from week 4 by adding a counter that will count the number of guesses for each player. When the game is over or the user quits the game will display the total number of guesses and the percent of guesses that were correct. You will also need to add a loop to allow the user to keep guessing until they quit or have guessed all the names of the stooges.

modify the guessing game from week 4 by adding a counter that

lessing Game.c 1 #include #include 4 main() char name [15 ] ; char guess [15 ] ; char stooges [3] [15] = {"LARRY", "MOE", "CURLY"}; int ctr; char found; puts ( "Enter your name ") ; gets (name ) ; printf("Hi %s\ " , name) ; puts("Enter the name of a stooge ") ; gets (guess ) ; for (ctr=0; ctr

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!