See the schedule for when this
assignment is due.
Do these exercises from Exercises 4.2 (pages 182, 183): #6, #9,
and #11.
To "do an exercise", you must do three things:
- Write a complete OCD design for the method.
- Write down at least five input-output data pairs for testing
the method.
- Write the Java code for the method itself.
Keep in mind that these are all computation methods,
not main() drivers. There should be
absolutely nothing about screens or keyboards in
this assignment.
However,
- Write everything by hand. No typing.
While I run the risk of bad penmanship, I've found that students
are often thrown on quizzes by having to write a method,
rather than type it. Typed assignment will be thrown out,
and you'll have to do it all over.
- You do not have to include comments.
- You do not have to actually write the code for the
test cases. Just come up with five inputs and their corresponding
outputs.
For those of you worried about the number "4" here, that's
solely because this is a written assignment taken from Chapter 4 of
our text book. You did not miss Written
Assignments #1, #2, and #3. There weren't any.
|