Reference no: EM13781143 
                                                                               
                                       
Given a word scramble and a dictionary of words, find the best possible solutions to each word.
Both the dictionary and the wordscramble are a set of words, one per line. The script should output one or more solutions. An example wordscramble and solution are provided, below.
1. You must provide a hard coded dictionary in your program.
for example, this might be your dictionary: mary twinkle star row your boat gently down the stream life but dream ruby
2. An array of arrays, filled with single characters composing the word may be used.
a = %w[m a r y]            #=> ['m', 'a' , 'r', 'y'] or
a = Array ['m' 'a' 'r' 'y']        #=> ['m', 'a' , 'r', 'y']
3. The length of each dictionary word may be useful for starting to unscramble the word.
['m', 'a' , 'r', 'y'].length      # => 4
4.Report an error if a word is not the dictionary (i.e cannot be unscrambled).
EXAMPLE:
*******
The scrambled word is: arym
Guess the word....
You have 5 guesses left....
army
Your guess is incorrect. 4 left...
********
The scrambled word is: arym
mary
You got it!
<Y> ti continue ir <N> to stop
N
*******
Game ends!
                                       
                                     
                                    
	
		| Discuss how you would have approached the particular topic
                                        : discuss how you would have approached this particular topic if you were  to write a middle ground argument, instead of a Toulmin or Rogerian  argument. | 
		| Problems related to theology and philosophy
                                        : What are the similarities and differences between your personal beliefs  about God and the accounts of God we have studied this week? | 
		| Help on pc desk
                                        : You are the Chief Information Officer (CIO) of a medium sized business  that provides an online data base to Internet subscribers.  By then end  of the current business quarter, you must propose a design for the  implementation of client operating sy.. | 
		| Language and forms of cultural organization
                                        : Based on your reading about language and forms of cultural organization,  please write a brief essay of 2 pages answering the following  questions: | 
		| Write a program for the wordscramble game
                                        : Both the dictionary and the wordscramble are a set of words, one per  line. The script should output one or more solutions. An example  wordscramble and solution are provided, below. | 
		| Distinguish technical efficiency from economic efficiency
                                        : Distinguish the various cost curves and describe the relationships among them - Explain the role of the firm in economic analysis and describe the production process in the short run - Distinguish technical efficiency from economic efficiency. | 
		| Explain the structure of the appellate courts in your state
                                        : Include in your discussion an explanation of the jurisdiction (authority  to hear cases) of these various trial courts. Specifically, explain in  what trial court(s) in the state you would file specific types of  claims. Additionally, explain the str.. | 
		| Analyze the basic issues of human biology
                                        : In 200-250 words, analyze the basic issues of human biology as they  relate to chronic conditions and describe the interaction between  disability, disease, and behavior. | 
		| Behaviors about a number of conditions including cancer
                                        : Our stage of life, intellectual/cognitive abilities, and sociocultural  position in life, affect our perspectives and resultant behaviors about a  number of conditions including cancer. |