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

  1. Continue working on the BigRational exercise, although it is not due until next week.
  2. Continue reading from Chapters 1 through 6 of Big Java, as necessary.
  3. 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.

  1. I want to compare two BigRationals, x and y, to see if they are equal value (intuitively, x == y).
    1. Write an expression for this using the compareTo() method.
    2. Write an expression for this using the equals() method.
    3. What is compared if instead I write (x == y)?

  2. In 20 words or fewer, what is an acceptance test?
  3. In 20 words or fewer, what is a system test?
  4. In 20 words or fewer, what is a unit test?
  5. List at least 3 reasons why software engineers should do unit testing.