Ninth homework assignment for SE/CS 46B.