Write a menu driven program that either accepts words and theirmeanings or displays the list of words in lexicographical order(i.e. as in a dictionary). When an entry is to be added to thedictionary you must first enter the word as one string and thenenter the meaning as separate string. A word may have more than onemeaning and may be entered at separate times. When this occursplace each successive meaning on a separate line. This new meaningmust be preceded by a dash. For example if you enter the followingwords and with their meanings in the following order: LibrarySchool Cup and School then your output should be a display asshown in the Figure 1.