Question: HOMEWORK 1 - GRADING KEY 1. (17 points) Documentation and Coding Style Name, ID number and recitation at the top of ALL java files [2

HOMEWORK 1 - GRADING KEY

1. (17 points) Documentation and Coding Style

  • Name, ID number and recitation at the top of ALL java files [2 points]
  • Precise and correct specifications. [6 points]
  • Indentation. [3 points]
  • Variable Names. [2 points]
  • Javadoc Style for Documentation. [4 points]

NOTE 1: Only submit java files. We will use the javadoc *.java command to create the javadoc files.

NOTE 2: YOUR ASSIGNMENT WILL NOT BE GRADED if you submit only *.class files.

NOTE 3: YOUR ASSIGNMENT WILL NOT BE GRADED if you use ArrayList, Vector or any predefined Java API Data Structures.

2. (13 Points) Source Code

  • Implementation done as specified (additional methods are OK) [7 points]
  • Throw an exception back to the calling method(s) if a precondition is violated. [6 points]

3. (70 Points) Program Correctness

  • Program compiles without any errors. [15 points]
  • Program handles erroneous input gracefully [5 points]
  • A - Add Book [7 points]
  • S - Swap Books [7 points]
  • L - Loan Book [4 points]
  • R - Remove Book [7 points]
  • D - Duplicate Book [7 points]
  • C - Change Shelf [3 points]
  • O - Overwrite other bookshelf with clone of the current bookshelf [7 points]
  • E- Check for bookshelf equality [7 points]
  • Q - Quit [1 point]

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!