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 |
-----THANK YOU----- Press any key to continue . . .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
