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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started