Question: Can anyone help me with this ? Do it on C please. Write the wordGame algorithm 2. 1. Create a project and name the source

Can anyone help me with this ? Do it on C please.Write the wordGame algorithm 2. 1. Create a project and name thesource code wordGame.c 3. Add the preprocessor directives and main function **build run and test 4. Add the function prototype and implement theCan anyone help me with this ? Do it on C please.

function definition for the GameRules function 5. Add the function call in

the main function build run and test 6. Create and implement the

Write the wordGame algorithm 2. 1. Create a project and name the source code wordGame.c 3. Add the preprocessor directives and main function ** build run and test 4. Add the function prototype and implement the function definition for the GameRules function 5. Add the function call in the main function build run and test 6. Create and implement the (0 to quit function) loop in the main function, I suggest using a do/while loop 7. Add the function prototype and implement the function definition for the function that determines if the player wants to play another round PlayAgain Add the function call ** build run and test 9. Go to the assignment and save "inputWords.txt" into the same directory as wordGame.c (remember to use your Z drive on portal.eng.fau.edu) 10. Declare a file pointer variable, connect to the input file and use fscanf to read a word from the file 11. Remember to add the space in fscanf for %s 12. Use printf statements to see the word from the file print onto the screen (inside the loop) ** build run and test Each time you enter y a new word will be read from the file and printed on the screen GET HELP HERE IF YOU CANNOT CONNECT, READ AND PRINT THE WORDS FROM THE FILE) 13. Add the function prototype and implement the function definition for the function that changes a character array to all one case (lower) Use the tolower function (from ctype.h) to change each letter in the word to lowercase you will need to use strlen to get the length of the solution word int length - strlen(solution); . You need to loop thru the array character by character word [i] = tolower(word[i]); //example *build run and test (use printf to test) AMPLE OUTPUT at this point: ELCOME TO the Word Guess Game! lease read the following instructions before you play. You wil1 be presented with a word to be guessed (a secret word of dashes) Guess letters one at a time You wil1 have 5 letter guesses Each time a letter is guessed, if it is in the word it will be placed in the dash word The dash word will be presented each time After guessing 5 letters, you will have the opportunity to guess the word Write the wordGame algorithm 2. 1. Create a project and name the source code wordGame.c 3. Add the preprocessor directives and main function ** build run and test 4. Add the function prototype and implement the function definition for the GameRules function 5. Add the function call in the main function build run and test 6. Create and implement the (0 to quit function) loop in the main function, I suggest using a do/while loop 7. Add the function prototype and implement the function definition for the function that determines if the player wants to play another round PlayAgain Add the function call ** build run and test 9. Go to the assignment and save "inputWords.txt" into the same directory as wordGame.c (remember to use your Z drive on portal.eng.fau.edu) 10. Declare a file pointer variable, connect to the input file and use fscanf to read a word from the file 11. Remember to add the space in fscanf for %s 12. Use printf statements to see the word from the file print onto the screen (inside the loop) ** build run and test Each time you enter y a new word will be read from the file and printed on the screen GET HELP HERE IF YOU CANNOT CONNECT, READ AND PRINT THE WORDS FROM THE FILE) 13. Add the function prototype and implement the function definition for the function that changes a character array to all one case (lower) Use the tolower function (from ctype.h) to change each letter in the word to lowercase you will need to use strlen to get the length of the solution word int length - strlen(solution); . You need to loop thru the array character by character word [i] = tolower(word[i]); //example *build run and test (use printf to test) AMPLE OUTPUT at this point: ELCOME TO the Word Guess Game! lease read the following instructions before you play. You wil1 be presented with a word to be guessed (a secret word of dashes) Guess letters one at a time You wil1 have 5 letter guesses Each time a letter is guessed, if it is in the word it will be placed in the dash word The dash word will be presented each time After guessing 5 letters, you will have the opportunity to guess the word

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!