CSC 221: Computer Programming I
Fall 2006

HW4: Class Design & Conditionals


PART 1: Decision Maker

For the first part of this assignment, you will extend the existing DecisionMaker class. This class defines an object that will take any yes/no question and return a definitive answer. You are to make the following additions to this class.

PART 2: LockBox

For the second part of this assignment, you are to design and implement a class for storing a secret message. Your LockBox class should allow the user to store a message and secure that message with a password. Once stored, the message can only be accessed or changed with the accompanying password. The detailed behavior of this class is defined by the LockBox.html javadoc page. Your class should meet the specifications in this page, and include comments that would generate a similar page.