Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a dictionary program that lets users enter words and definitions and then look them up later. Your program should let the users know if
Write a dictionary program that lets users enter words and definitions and then look them up later. Your program should let the users know if the word does not exist in the dictionary yet. Your program should allow the users to see the entire dictionary.
Below is a sample
Type 'a' to add word, 'l' to look up, 's' to display the entire dictionary or 'q' to quit: a Type the word: apple Type the definition: a fruit Word added Type 'a' to add word, 'l' to look up, 's to display the entire dictionary or 'q' to quit: a Type the word: computer Type the definition: a machine that does very fast math Word added Type 'a' to add word, 'l' to look up, is to display the entire dictionary or 'q' to quit: 1 Type the word you want to look up: apple a fruit Type 'a' to add word, 'l' to look up, 's' to display the entire dictionary or 'q' to quit: 1 Type the word you want to look up: car The word isn't in the dictionary yet. Type 'a' to add word, 'l' to look up, 's' to display the entire dictionary or 'q' to quit: s apple => a fruit computer => a machine that does very fast math Type 'a' to add word, 'l' to look up, 's' to display the entire dictionary or 'q' to quit: q Thank you for using the dictionary programStep 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