Hence the rows will denote the index number of the words and the column number will denote the particular character in that word. In this 2-D array, each row will contain a word each. Write a loop that asks the user to guess a character + Check if the character is in the word. To store the words, a 2-D char array is required. if the word selected was "banana" six dashes or 6 underscore characters would be shown (as above)
+ Given the word, display the following to the screen E.g. +Create a program that will initialize the dictionary, then randomly select a word from the dictionary. The idea is to use Trie data structure to store dictionary, then search words in Trie using characters of given array. Make this array size 20 (with 20 words) - add any words you wish (preferably greater than 5 characters per word - to make things interesting) For example, dictionary → banana fruit exotic Redim /preserve/ ar (15) Then you can: Ar (1) new dictionary (of string, integer) Alternately you can use a list instead of an array. Dim ar (15) as Dictionary (of string, integer) Or. Initialize you array in your main method (i.e. Just like any array, you need to set the bounds of the array before you can reference them. After that, we have pick only those characters in ‘Arr ’ which are a child of the root of Trie. Create an empty Trie and insert all words of given dictionary into the Trie. Transcribed image text: Create a dictionary of words, as a String array. The idea is to use Trie data structure to store dictionary, then search words in Trie using characters of given array.