Question: Text is readable just zoom in on browser. Thanks some word games require rearranging a combination of letters to make a word. This type of
Text is readable just zoom in on browser. Thanks


some word games require rearranging a combination of letters to make a word. This type of arrangement is generally referred to as an anagram, it's known as a permutation in mathematics.This assignment will give you some experience thinking about and writing recursive functions. Write a C++ program that searches for anagrams" in a dictionary. An anagram is a word obtained by scrambling the letters of some string. For example, the word pot" is an anagram of the stringotp. A sample run of the program is given below. Your output does not have to be formatted exactly the same as that shown in the sample, but should be in a similar style You can use words.txt as your dictionary file and anagram.cpo as an example of a main program. Since the purpose of this assignment is to give you experience using recursion, you may not use any of C+'teration constructs (do, while, for, and goto) or any STL algorithms (if you have no idea was this means, you're OK). All repetition must be accomplished using recursion. This applies to every operation in the program, even file operations. Obviously, you would never write a program like this in industry but as an exercise it should be useful to gain experience with recursion. Sample Runs Here are two examples of how the program might work: Please enter a string for an anagram: opt Matching word opt Matching word pot Matching word top Please enter a string for an anagram: blah No matches found IOASOTISTOTOSTSOTNIININONNRONOTOTONNNM llanagram.cpp #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
