write a program that manages a dictionary that stores English language words and for each word, what part of speech (POS) it is. As you might remember, noun, verb, adjective, ... are POSs. For example, the dictionary might have the pairs (eat, verb), (pen, noun), (wise, adjective) in it. Initially, the dictionary is empty. You can add words into the dictionary or given a word, you can lookup its meaning. There are 4 commands: ADD, LOOKUP, ALL, END. Your program should read commands from the keyboard and perform the relevant action until the END command is received. Here are the descriptions of the commands
Comments
Leave a comment