Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Word guessing games are a very common childhood activity. Typically you are told how many letters are in the word, and then you guess letters.

Word guessing games are a very common childhood activity. Typically you are told how
many letters are in the word, and then you guess letters. Letter by letter, you either see
more of the word, or you run up against a deadline. Examples of these games are
apple tree, hangman, and even the TV show Wheel of Fortune.
You have decided to go try out for Wheel of Fortune, but you want to put your new found
coding skills to the test first. You are going to write a helper program, which will help
you guess the correct words.
This program will ask you how many letters are in the word, then itll ask you to give it
some letters that you know, and itll show you all the possible words of that length with
those letters.
There are two different ways that you might want to use it. For example you might want
to find all words which have the letters o and p in them in any order. Top being an
example, Pot being another. But you might also want to be able to find words with a
particular pattern in them, for example, all words with pp in them (such as happy).
In order to simplify this, we are going to use a dictionary of the 900 most common words
in English. When we get to the FileIO Module in a few weeks, you could modify this to
load in a full dictionary which would have 100,000+ words. Then it would be even more
powerful, but even with the 900 most common words, itll help a lot.

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

Step: 3

blur-text-image

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions