Homework 11
CSSE 221 – Fundamentals of Software Development Honors
Fall 2008–2009
Recall the
Due Dates
and
(from the syllabus)
the
Late (and early) Assignment Policy
and guidelines for
maintaining Academic Integrity.
Also recall that you can get help on any of these problems during the
CSSE lab assistant hours,
and you can use the Assignments Discussion Forum
on Angel to discuss, clarify, or get help on these problems.
Things to do
- Continue working on your Fifteen project,
using pair programming throughout. You should be finished or nearly finished
with it by the due date of this homework.
- Read the rest of Chapter 9, Interfaces and Polymorphism,
of Big Java. (You previously read sections 9.1 through 9.3.)
- Do and self-check all the Self Check problems
that you encounter in this reading.
- You don't have to write down the answers to those Self Check problems;
just do them in your head and then check your answers against
the answers given at the end of the chapter.
- Note that one of your written problems (below)
asks you how many of these Self-Check problems you actually did.
- Do the written problems below.
Written problems
Write your answers to these questions.
Turn your answers in via the appropriate Homework Drop Box on Angel.
- (4 points)
There are 22 Self-Check problems in Chapter 9 (part of your reading for this homework).
How many of these 22 Self-Check problems did you read, think about briefly, and check your answer
against the answer at the back of the chapter?
- Yes, you already did the first 7 of these in a previous homework. Do those 7 again
very briefly -- this is good stuff!
- Your answer to this problem is simply a number between 0 and 22 -- I believe
that you will be truthful.
- I hope that you did them all! It takes not-too-many minutes to do so!
- (3 points) Do Review Exercise R9.7 on page 431
(end of Chapter 8) of Big Java.
- (1 point) Do Review Exercise R9.23 on page 432
(end of Chapter 8) of Big Java.
- (2 points)
Examine the RectangleMover class on pages 420-421.
- There is an inner class inside RectangleMover.
What is the name of the inner class,
and it goes from line numbers what to what?
- Indicate how you would rewrite RectangleMover to use an anonymous class
instead of an inner class for responding to the timer.
- In your opinion,
which is more clear -- the solution that uses an inner class
or the solution that uses an anonymous class? Why?
- Note: I will accept either answer to this question.
Your grade will be based on the quality of your explanation
for why you prefer the solution that you prefer.