create a python program Problem Statement Implement all the functions of a dictionary (ADT) using hashing.
create a python program
Problem Statement
Implement all the functions of a dictionary (ADT) using hashing.
Data:
• Set of (key, value) pairs.
Keys are mapped to values.
Keys must be comparable.
Keys must be unique.
Standard Operations:
• Insert(key, value)
• Find(key),
• Delete(key)
This is the example output of the program.
====== CPE 204L Dictionary =====
[1] : Insert Word
[2] : Find Word
[3] : Delete Word
[4] : Exit
============================
Enter your choice : 1
Enter word: pretty
Enter meaning: beautiful
Pretty is successfully inserted into dictionary
====== CPE 204L Dictionary =====
[1] : Insert Word
[2] : Find Word
[3] : Delete Word
[4] : Exit
============================
Enter your choice : 1
Enter word: pretty
Enter meaning: beautiful
Duplicate Word! Pretty is not successfully inserted into dictionary.
====== CPE 204L Dictionary =====
[1] : Insert Word
[2] : Find Word
[3] : Delete Word
[4] : Exit
============================
Enter your choice : 2
Enter word: pretty
Word is Present in Dictionary
pretty = beautiful
====== CPE 204L Dictionary =====
[1] : Insert Word
[2] : Find Word
[3] : Delete Word
[4] : Exit
============================
Enter your choice : 3
Enter word: pretty
Word is successfully deleted
====== CPE 204L Dictionary =====
[1] : Insert Word
[2] : Find Word
[3] : Delete Word
[4] : Exit
============================
Enter your choice : 2
Enter word: pretty
Word not Found.
====== CPE 204L Dictionary =====
[1] : Insert Word
[2] : Find Word
[3] : Delete Word
[4] : Exit
============================
Enter your choice : 4
Thank you for using the dictionary program
Trending now
This is a popular solution!
Step by step
Solved in 2 steps