Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is in C++. Instructions DESIGN and write a program that gets input from the user for contents of a dictionary. The program must contain
This is in C++.
Instructions DESIGN and write a program that gets input from the user for contents of a dictionary. The program must contain at least two functions: one for inputting the user data and one for outputting the user data. The user specifies the number of dictionary terms and the program must ask the user for each term/definition pairing. The program must be able to store the terms in memory and output each term/definition. The program must: 1. 2. Ask the user for number of dictionary entries. For each new entry: a. b. c. d. Ask the user for the word. Ask the user for the definition. Store the word in one array. Store the definition in the other array. 3. 4. Output all the dictionary entries that were stored. Clean up memory and exit. Things to consider: 1. 2. 3. 4. 5. How will you make sure one array is just as long than the other? How would you pass each array to the two functions? How to print out each term next to definition on the same line? How would you ensure that the array can handle any amount of terms entered? What if the user entered "O" for the number of terms and definitions? Requirements: This program MUST be able to support any amount of user input. This program MUST NOT use any of the Standard Template Library members (i.e. vectors, lists, maps etc.) The string library CAN be used in this program (and highly encouraged!) 1. 2. 3Step 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