[Solved]4 15 Points Define Structure Type Represent Word List Structure Wll Contain One String Com Q37285064

4. (15 points) Define a structure type to represent a word list. The structure wll contain one string component for the language of the words (e.g., English, Japanese, Spanish), and integer component that keeps track of how many words are in the list, and an array of MAX. WORDS 20-character strings to hold the words. Define the following functions to work with word lists A. add.word: Takes as parameters a word and a wordlist structure to modify. If the wordlist is already full, t displays the message “List ful, word not added”). If the word is already in the list, it leaves the structure unchanged. Otherwise, it adds the word to the list and updates the list size. Do not bother keeping the list in order. B. contains: Takes as parameters a word and a wordlist. If the word matches one of the wordlist entries, the function returns true, otherwise false. C. equallists: Takes two wordlists as parameters and returns true if the lists are in the same language, have the same number of elements, and every element of one list is found in the other. D. displaywordlist Displays all the words of its wordlist structure parameter (one word per output line) Show transcribed image text 4. (15 points) Define a structure type to represent a word list. The structure wll contain one string component for the language of the words (e.g., English, Japanese, Spanish), and integer component that keeps track of how many words are in the list, and an array of MAX. WORDS 20-character strings to hold the words. Define the following functions to work with word lists A. add.word: Takes as parameters a word and a wordlist structure to modify. If the wordlist is already full, t displays the message “List ful, word not added”). If the word is already in the list, it leaves the structure unchanged. Otherwise, it adds the word to the list and updates the list size. Do not bother keeping the list in order. B. contains: Takes as parameters a word and a wordlist. If the word matches one of the wordlist entries, the function returns true, otherwise false. C. equallists: Takes two wordlists as parameters and returns true if the lists are in the same language, have the same number of elements, and every element of one list is found in the other. D. displaywordlist Displays all the words of its wordlist structure parameter (one word per output line)
Expert Answer
Answer to 4. (15 points) Define a structure type to represent a word list. The structure wll contain one string component for the … . . .
OR

