Homework 3
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 the BigRational exercise,
although it is not due until next week.
- Continue reading from Chapters 1 through 6 of Big Java,
as necessary.
- 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.
- I want to compare two BigRationals, x and y, to see if they are equal value (intuitively, x == y).
- Write an expression for this using the compareTo() method.
- Write an expression for this using the equals() method.
- What is compared if instead I write (x == y)?
- In 20 words or fewer, what is an acceptance test?
- In 20 words or fewer, what is a system test?
- In 20 words or fewer, what is a unit test?
- List at least 3 reasons why software engineers should do unit testing.