CS 220X, D-term 2015 Homework 2 (35 points) Grade Sheet Program documentation and formatting (10 points) -------------------------------------------------------------- - students name and username in a comment at the beginning of the file - meaningful identifier names - correct and consistent indentation - use of blank lines to separate sections of code - code follows the Java coding conventions we've covered so far - all classes, public methods and constructors documented with javadoc-style comments - additional in-line comments as needed Functionality (25 points) ---------------------------------- In general, we will be looking for classes that exhibit encapsulation: - public and private modifiers used appropriately - methods are defined in the classes in which they belong Question class defined as described (8 points) - constructor defined as specified - toString() defined - any additional methods needed to support functionality of Question class Quiz class defined as described (10 points) - constructor defined as specified - add() defined - two versions of giveQuiz() defined as specified helper methods defined as needed (duplicate code relegated to helper methods) - any additional methods needed to support functionality of Quiz class QuizTime class (5 points) - main() works as described Enumerated type defined with EASY/HARD (2 points) Deductions ---------------- -10 points if program submitted incorrectly (see "Deliverables" in homework description) -5 points if students name(s) are missing -8 points if assignment is submitted late, and it is the student's second or subsequent late submission -35 points if program doesn't compile (no credit for assignment)