CSSE 220 – Object-Oriented Software Development

Homework 15

Objectives

Practice with recursion and function objects.

Tasks

  1. Complete the assigned reading for the next session, according to the course schedule.

  2. Complete the assessment exercises over this reading on ANGEL (under Lessons → Assignments).
  3. Solo programming: Complete the following exercises from the FunctionObjects project that you checked out in class.
    1. Read and understand the code in the rectComparatorExaple package.

    2. Complete the TODO items in the classes in the functions package.

    3. Complete the TODO items in the the MatchableFunctions class in the matchable package.   Here are a few more details on that. The problems were taken from Data Structures and Problem Solving in Java, 4th Ed. by Mark Allen Weiss.  I have included the text of those problems below.  We set up the framework for you and in class today we did parts a and b of problem 44.  We also wrote the isPositive function object, which lets you see the basics of how the function objects you are to write should work.  Wheat you are to do is essentially problems 44c and 45.

weiss problems text

Here is the grading rubric for this assignment.

Turn-in Instructions

Turn in your programming work by committing it to your SVN repository.