Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what you asking about this picture is clear I need this for today please in C Program #1: Ghost Solver Ghost is a spoken word

what you asking about this picture is clear

I need this for today please in C

image text in transcribed

Program #1: Ghost Solver Ghost is a spoken word game in which players take turns adding letters to a growing word fragment, trying not to be the one to complete a valid word. See: ps/em.wikidaorwkiGhost(gamk) For example: In a game of ghost, I have chosen "f. You then chose a', and then I chose T". It is now "Fal" to you. You decide to spell "Fallout" since that would place me saying the last letter, granting you the win! However, as soon as you say "I you realize your mistake. You've game! You spelt "fall" which is indeed a word. Too bad! lost the Sounds like you need a ghost solver. Please write a program that will aid in winning ghost games. The program will receive a series of letters from the command line as input. First, determine if the number of let odd. If even, you will be searching for even-length words. If odd, you will be searching for odd- length words. For each word in the dictionary ters input is even or Check that the first letters of the word match the user-supplied letters Check that the number of letters in the word is even or odd Then, for cach letter in the word past what the user input, check that a new word is not formed along the way If these criteria are met, display the word as a possible solution. Hint: 1) It will help to create a function to test if a word is in the dictionary. 2) Remember, that a string e nds at a null character. 3) You may assume that the letters supplied by the user do not spell a word already or have a word inside them. [In practice, this may be a bad assumption.] Please write a program that will calculate the number of two numbers provided as command line arguments. Example output would look like this: $ Programl gho Finding words that will end on Player 1 permutations and combinations for the s Program 1 xylo Finding words that wil1 end on Player 2 Possible Words Possible Words ghost ghoul xylocarp xyloid xylose xylotomy I found 2 words to use. Goodbye. I found 4 words to use. Goodbye

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions