Question: A program should read a set of words and their relevant information from a file named Words.txt. The user should be then able to enter

A program should read a set of words and their relevant information from a file named Words.txt. The user should be then able to enter words into the dictionary with their relevant information.

The format of the input data is as follows:

Word: meaning1, meaning2, ... , meaningN / a synonym * an

antonym. N 1.

Example

old: advanced in age, aged, antique / ancient * new

To keep track of the dictionary, a computer program based on an AVL tree data structure should be implemented. You are required to implement a program to help creating the dictionary by including the following operations of an AVL tree:

a) Read Words.txt file and create the dictionary (i.e., AVL Tree).

b) Insert a new word from user with all its associated data (up to three

meanings).

c) Find a word and give the user the option to update the information of the

word if found.

d) List words in the dictionary in lexicographic order with their associated

meanings, synonyms, and antonyms.

e) List all synonyms and antonyms of a given word.

f) List all words that start with the same first letter in lexicographic order.

g) Delete a word from the dictionary.

h) Delete all words that start with a specific letter.

i) Save all words in file (Like Dictionary.data)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!