CS 240: Data Structures and Algorithms
James Madison University, Spring 2013

HW #3

For this assignment you will use Blackboard to submit a single file named calendar.py. Your file should include your name, the date, and your honor code statement statement. Carefully test each function to make sure that it works as expected. These exercises will be graded both on functionality and code quality.

Submissions without an honor code statement will receive a grade of 0.


  1. Implement the class hierarchy described by the UML diagram below. (15pts)



    NOTES:
    • Each class and method should have an appropriate docstring.
    • I will use (at least) the following tests to test your code: calendar_tests.py . Passing these tests does not prove that your code is correct, but failing any of these tests does demonstrate that you have a problem. (This is an ugly way of handling testing. We will see how to use a proper unit testing framework later in the semester.)