CSSE 220 – Object-Oriented Software Development
Homework 15
Objectives
Practice with recursion and function objects.
Tasks
-
Complete the assigned reading for the next session, according to the course schedule.
- As you read, see if you can answer the self-check questions.
- Bring your questions to class!
- Complete the assessment exercises over this reading on ANGEL (under Lessons → Assignments).
- Solo programming: Complete the following exercises from
the FunctionObjects project that you checked out in class.
-
Read and understand the code in the rectComparatorExaple
package.
Complete the TODO items in the classes in the
functions package.
- 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.
Turn-in Instructions
Turn in your programming work by committing it to your SVN repository.