Help needed

MarketdockStylsM
Assignment-01.pdf

CSC 340.03+04+05 ASSIGNMENT 01 FALL 2018 TA

Updated: 9/7/2018 11:46 AM

ASSIGNMENT INSTRUCTIONS

1. Assignment 01: 55 points w/ 0 E.C. points 2. Due Date & Time: 09-18-2018 at 11:59 PM

WHAT TO SUBMIT

1. Assignment Report 2. Code

HOW TO SUBMIT

• Please refer to the “Guidelines for All Assignments” and the “Assignment Report Template” which we discussed in detail in assignment 00.

ABOUT

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.

Instead of a test, this assignment is our opportunity to review (and to learn) a number of important Java topics and get us ready for C++. This assignment is to be done in Java, not C++.

PART A – OOP Class Design Guidelines, 10 points

Y. Daniel Liang’s 8 Class Design Guidelines: http://csc340.ducta.net/WEEK-02/JAVAtoCPP-ClassDesignGuidelines.pdf

Please choose 4 guidelines and discuss them in depth. For each guideline, use at least half a page for your discussion.

PART B – Java Programming, Data Design, and Data Structures, 45 points

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 enum objects into our dictionary’s data

structure. - User Interface: A program interface allows users to input search keys and displays returned results. Our program searches

the dictionary’s data (not the enum objects) 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-PartB-SampleOutput.pdf .

1. Program Analysis to Program Design, 10 points In 1 full page, please explain the following in detail: ▪ Your analysis of the provided information and the provided sample output. ▪ What problem you are solving. ▪ How you store data in enum objects. And why. ▪ Which data structure(s) you use/create for your dictionary. And why.

2. Program Implementation, 35 points

▪ Does your program work properly? ▪ How will you improve your program? ▪ Sample run:

P E R F O R M A N C E T R A C K E R

ASMT GRADE YOUR GRADE

00 25

01 55

TOTAL 80

A: 90-100% B: 80-89% C: 70-79% D: 60-69% F: 0-60%

The course grader provides feedback to your assignments on iLearn.

CSC 340.03+04+05 ASSIGNMENT 01 FALL 2018 TA

Updated: 9/7/2018 11:46 AM