Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(crossword.h) (findWordsMain.cpp) (findWords.cpp) Your task is to write a program to help with doing crossword puzzles. For desalted example, imagine that you are filling in
(crossword.h)
(findWordsMain.cpp)
(findWords.cpp)
Your task is to write a program to help with doing crossword puzzles. For desalted example, imagine that you are filling in the crossword puzzle shown belowdesalter deserted deserter character is t. Your program should output all the words in the provideddesertic lexicon that meet those criteria. (Shown in the box on the right.) Or maybe |desisted you managed to figure out that the word at 32 across, whose clue is "Witty |despatch despited despites despotic disaster disinter diskette dispatch disputed disputer disputes disrated disrates and are working on the highlighted word searching for an 8-letter word where the first character is d, the third character is s and the sixth reply", is "retort". Adding that to the criteria already specified would narrow down the choices to "deserted", "deserter", or "desertic" 1019. River mouths Start with findWords.cpp and findWordsMain.cpp that we wrote in class, changing the names to crossword.cpp and crosswordMain.cpp, respectively, and make the following changes: House locations Large antelop 25. Washington, DC time A S Food allotment Knife feature 31. Australian dog Down: 17. Rose Bowl city 19. AWOL soldier 21. Make over Card game Yule drink 23. 24. One, in Havana 27. Hue Sis's sibling crossword.cpp Add function lookForCrosswords that which iterates through the entire lexicon, looking for words that meet the criteria and printing them to stdout. Check crossword.h to see how those criteria are passed to the function. crosswordMain.cpp We will specify the search criteria using command-line arguments, with the first argument being the length of the desired word, followed by a variable number of index- letter pairs. For instance, to specify the criteria in the first example above, the arguments would be 8 1 d 3 s 6 t. Adding the additional criteria yields the arguments 8 1 d 3 s 6 t 5 r. Note that the indices are specified in the more natural way of starting at one, instead of zero. Your program will have to make the adjustment. Your task is to write a program to help with doing crossword puzzles. For desalted example, imagine that you are filling in the crossword puzzle shown belowdesalter deserted deserter character is t. Your program should output all the words in the provideddesertic lexicon that meet those criteria. (Shown in the box on the right.) Or maybe |desisted you managed to figure out that the word at 32 across, whose clue is "Witty |despatch despited despites despotic disaster disinter diskette dispatch disputed disputer disputes disrated disrates and are working on the highlighted word searching for an 8-letter word where the first character is d, the third character is s and the sixth reply", is "retort". Adding that to the criteria already specified would narrow down the choices to "deserted", "deserter", or "desertic" 1019. River mouths Start with findWords.cpp and findWordsMain.cpp that we wrote in class, changing the names to crossword.cpp and crosswordMain.cpp, respectively, and make the following changes: House locations Large antelop 25. Washington, DC time A S Food allotment Knife feature 31. Australian dog Down: 17. Rose Bowl city 19. AWOL soldier 21. Make over Card game Yule drink 23. 24. One, in Havana 27. Hue Sis's sibling crossword.cpp Add function lookForCrosswords that which iterates through the entire lexicon, looking for words that meet the criteria and printing them to stdout. Check crossword.h to see how those criteria are passed to the function. crosswordMain.cpp We will specify the search criteria using command-line arguments, with the first argument being the length of the desired word, followed by a variable number of index- letter pairs. For instance, to specify the criteria in the first example above, the arguments would be 8 1 d 3 s 6 t. Adding the additional criteria yields the arguments 8 1 d 3 s 6 t 5 r. Note that the indices are specified in the more natural way of starting at one, instead of zero. Your program will have to make the adjustmentStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started