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
- Due beginning of Lab (tomorrow) Week 1
- Download and install Java Development Kit (JDK) 7.
- Or from Here
- Download and install IntelliJ IDEA 12 (Community Edition).
- Due beginning of class on Monday of week 2
- Meet Dr. Yoder in his office or for lunch
- Already graded
- Exercise: 3.10, 3.11
- Exercise: 3.4, 3.16
- Read lab 2
- Set up codingbat: Create an account on the CodingBat site (make sure you enter your name in the Name field (even though it says it is optional). Put your instructor's email address in the "Share To" field (see preferences). (Dr. Taylor's 5 minute tutorial video)
Week 2 (due beginning of lecture on Monday of week 3)
- CodingBat: lastHalf
- CodingBat: makeInitialization
- CodingBat: helloName
- CodingBat: makeAbba
- Project: 2.5, 2.8, 2.9
Optional exam review problems
- Dr. Hasker's Review Problems
- Project: 3.7
- See Week 4 (below) for codingbat assignment
Week 4
- Exercises (Due Tuesday of Week 5)
- Ex 5.1, 5.3
- Codingbat (Due by start of lecture, Thursday of Week 5. Was optional exam review.)
Week 6
- Exercises (Due Tuesday of Week 7. If turned in Monday of Week 7, will grade & return before Exam II)
- Ex 6.2, 6.5, 6.8
- Optional Codingbat Non-loop Problems
- CodingBat: closeFar
- CodingBat: makeChocolate (Can you do it without loops?)
- CodingBat: sumDigits
- CodingBat: middleThree
- Optional Codingbat Loop Problems
- CodingBat: catDog
- CodingBat: xyzMiddle (This one is a real challenge!)
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