Question: 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 sampleWrite a dictionary program that lets users enter words and definitions and

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 program

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!