SE1011
Homework

There are four sources for the homework problems:

  • CodingBat assignment (with link to assignment provided).
  • 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 (doable by Tuesday of week 2)

  • Exercise 3.4

Week 2 (doable by end of week 2)

Note: You'll need to create an account on the CodingBat site (make sure you enter your name in the Name field (even though it says it is optional). You will also need to put your instructor's email address in the "Share To" field (see preferences). (5 minute tutorial video)

  • CodingBat: sum
  • CodingBat: helloName
  • CodingBat: makeAbba
  • Project: 3.7
  • Exercise: 2.5 (long form only)
  • Project: 2.5, 2.8, 2.9
  • Download this file. For each part, first predict what you think will be displayed, then run the code (commenting/uncommenting as needed) and verify your prediction.
  • Download this file. For each part, first predict what you think will be displayed, then run the code (commenting/uncommenting as needed) and verify your prediction.
  • Write a program that will initialize a variable named myHelloWorld with the string literal My Hello World" and print to the console the index of the letter H.
  • Write a program that will initialize a variable named firstName with your first name. Without using loops, print to the console each letter in your name on a separate line by using the charAt() method.
  • Using the String class documentation, explain what the replace() method does and write a program to demonstrate its usefulness.
  • Using the String class documentation, explain what the trim() method does and write a program to demonstrate its usefulness.

Week 3 (doable by end of week 3)

Week 4 (doable by Tuesday of week 4)

Week 5 (doable by Friday of week 5)

  • Exercise: 5.3, 5.7, 5.8
  • Project: 5.3, 5.4, 5.6, 6.1

Week 6 (doable by Friday of week 6)

Week 7 (doable by Thursday of week 7)

  • Exercise: 7.2, 7.7

Week 8 (doable by on Tuesday of week 8)

  • Exercise: 9.9
  • Project: 9.5
  • Implement calculateTermQuizScore() that accepts an array of ints as an argument and returns a double representing the quiz grade for the quarter.

Week 9 (doable by Friday of week 9)

Week 9 (doable by Monday of week 10)

Week 10 (doable by Friday of week 10)

Last modified: Friday, 04-Nov-2016 12:48:35 CDT