SE1011
Homework

This is an old version of this course, from Fall 2013. A newer version is available here.

There are four sources for the homework problems:

  • CodingBat assignment (with link to assignment provided below).
  • Exercise: 3.4 means exercise number 4 at the end of chapter 3.
  • Project: 2.5 means project number 5 for chapter 2.
  • Instructor written assignment.

Week 1

Week 2 (due beginning of lecture on Monday of week 3)

Optional exam review problems

Week 4

Week 6

Weeks 7, 8, & 9

Due in class of Week 10. (051: Tuesday, 011: Wednesday)
  • M7.5 Objects don't have names. Instead, they have reference variables that point to them. Then the name of the reference variable is, for all practical purposes, the name of the object in our program. Normally, we would not have two reference variables pointing to the same object. That would be ambiguous, giving two names to the same thing. Identify a situation where having two reference to the same object might be useful.
  • M7.16 If a method accesses a class variable, and also an instance variable, does the method have to be a class method? Does it have to be an instance method? Can it be both? Explain your answer.
  • M7.19 Why is it safer to declare a named constant public than to do the same with an instance variable?
  • Exercises 8.3, 8.4 (See p. 284 for Car4 class)
  • Exercises 9.2, 9.3, 9.5. (Note: arrays of chars are not Strings)
  • (Optional) Work through the example in these class notes

Last modified: Thursday, 05-Sep-2013 08:41:31 CDT