– Java Programming, Data Structures, and Data Design
CSC 220 is among CSC 340’s course prerequisites. CSC 210 and CSC 220 learn Java. Java is used in CSC 413 and other upper
division courses. A good foundation in Java usually helps us pick up C++ faster. For these reasons, we were supposed to have a
prerequisite exam to demonstrate our knowledge in Java programming.
We are hired to implement an interactive dictionary. Our dictionary takes input from users and uses the input as search key to look up values associated with the key. Requirements: - Coding: No hard coding, https://en.wikipedia.org/wiki/Hard_coding .
- Data Source: Store the original data in a set of enum objects.
Each keyword, each part of speech, and each definition must be stored in a separate data field.
Do not combine them such as storing three parts in one String.
- Data Structure: Use existing data structure(s) or creating new data structure(s) to store our dictionary’s data.
- Data Loading: When our program starts, it loads all the original data from the Data Source into our dictionary’s data structure. Data Loading must finish before our program starts interacting with users.
- User Interface: A program interface allows users to input search keys. This interface then displays returned results. Our program searches the dictionary’s data (not the Data Source) for values associated with the search keys.
- Identical Output: Our program’s output must be identical to the complete sample run’s output. The complete output is at: http://csc340.ducta.net/Assignments/Assignment-01-... .
1. Program Analysis to Program Design, 10 points. Please think Interviews.
In 1 full page, please explain the following in detail:
▪ Your analysis of the provided information and the provided sample output. Please think Clients and think Sales.
▪ What problem you are solving. Please explain it clearly then define it concisely. Please think Problem Solving.
▪ How you store data in enum objects. And why. Please think Data Structures and think Data Design.
▪ Which data structure(s) you use/create for your dictionary. And why. Think Data Structures and think Data Design.
2. Program Implementation, 35 points. Please think Interviews.
▪ Does your program work properly? ▪ How will you improve your program?
▪ A short sample run is on the next page. Please remember to use the complete output.