Question: Implement an interactive C++ dictionary. Your dictionary takes input from users and use the input as search key to look up value(s) associated with the

Implement an interactive C++ dictionary.

Your dictionary takes input from users and use the input as search key to look up value(s) associated with the key. Your program:

1. Opens and closes the included Data.CS..txt only once per run.

2. Finishes loading data from Data.CS..txt into its dictionary data structure(s) and closes the file before starting to interact with users.

3. Produces identical output.

Data.CS..txt:

book|noun => A set of pages.|verb => To arrange something on a particular date. bookable|adjective => Can be ordered. bookbinder|noun => A person who fastens the pages of books. bookcase|noun => A piece of furniture with shelves. csc210|adjective => Comfortable with Objects and Classes.|adjective => Ready for CSC 220.|noun => Intro to Java.|verb => To learn Java. csc220|adjective => Ready to create complex data structures.|noun => Data Structures.|verb => To create data structures. csc340|adjective => C++ version of CSC210 + CSC220 + more|noun => A CS upper division course.|noun => Many hours outside of class.

Identical OUTPUT:

! Opening data file... ./Data.CS.SFSU.txt ! Loading data... ! Loading completed... ! Closing data file... ./Data.CS.SFSU.txt

-----DICTIONARY 340 C++-----

Search: one two three four five siz seven | | Search: | | Search: one two | <2nd argument must be a part of speech.> | Search: one noun | | Search: cSc340 noun | CSC340 [noun] : A CS upper division course. CSC340 [noun] : Many hours outside of class. | Search: csc340 | CSC340 [adjective] : C++ version of CSC210 + CSC220 + more CSC340 [noun] : A CS upper division course. CSC340 [noun] : Many hours outside of class. | Search: Facebook | | Search: csc340 verb | | Search: csc220 | CSC220 [adjective] : Ready to create complex data structures. CSC220 [noun] : Data Structures. CSC220 [verb] : To create data structures. | Search: csc220 verb | CSC220 [verb] : To create data structures. | Search: csc210 | CSC210 [adjective] : Comfortable with Objects and Classes. CSC210 [adjective] : Ready for CSC 220. CSC210 [noun] : Intro to Java. CSC210 [verb] : To learn Java. | Search: csc210 adjective | CSC210 [adjective] : Comfortable with Objects and Classes. CSC210 [adjective] : Ready for CSC 220. | Search: book | Book [noun] : A set of pages. Book [verb] : To arrange something on a particular date. | Search: bookable adjective | Bookable [adjective] : Can be ordered. | Search: bookBINER noun | | Search: BOOKcase | Bookcase [noun] : A piece of furniture with shelves. | Search: BookCase noun | Bookcase [noun] : A piece of furniture with shelves. | Search: !Q

-----THANK YOU----- Press any key to continue . . .

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!