CSSE 220 – Object-Oriented Software Development

Homework 10

Objectives

Practice with arrays and ArrayLists in Java. More practice with loops and debugging in Java. More practice implementing classes based on a given specification.

Tasks

  1. Complete the assigned reading for the next session: §7.6–7.8. (See schedule for topics to focus on.) As you read, see if you can answer the self-check questions. If there is something you do not understand, make note of it so you can ask about it.
  2. Edit the Big Java Review Wiki on ANGEL, adding answers to two of the review exercises from chapter 7. Be sure to carefully follow the instructions for doing this that are posted on the Wiki.
  3. Note any questions that you have in preparation for the Exam on Wednesday. Bring them to class for the exam review. I’m also happy to work example problems.
  4. Solo Programming:
    1. Your programming work for this part must be done in the TwoDArrays project inside Eclipse. Use the SVN Repository Exploring perspective to check out this project, then switch back to the Java perspective.
    2. Complete the TODO items in TicTacToe and TicTacToeTest. The items are numbered in the order that you should complete them.
  5. Pair Programming: Conway’s Game of Life
    1. Use the SVN Repository Exploring perspective to add a new SVN repository to your Eclipse workspace. This is a shared repository where you’ll work on Game of Life with your partner. The URL for your shared repository is:
      http://svn.cs.rose-hulman.edu/repos/csse220-200910-team0n
      
      where n is your team number as given by your instructor.
    2. Your programming work for this part must be done in the GameOfLife project inside Eclipse. Use the SVN Repository Exploring perspective to check out this project from your shared SVN repository, then switch back to the Java perspective.
    3. Note: Now that you’re working with a partner, you can get hard-to-resolve SVN conflicts with your partner’s code. So please remember to do Team → Update for the project
      • when you first start working in Eclipse, and
      • whenever you are about to commit.
      If you and your partner always work together doing pair programming, then conflicts should not be a problem. (But be sure to ask for help if you get stuck.)
    4. Complete the TODO items in GameOfLife and GameOfLifeTest. The items are numbered in the order that you should complete them.
    5. Try some different initial configurations. The method getGliderList() in GameOfLifeMain generates a list representing the classic glider formation. See p. 333 of Big Java for another example.
    6. Make sure that:
      • Both team members understand all the code the team is turning in.
      • All methods are documented.
      • All TODO items are completed.
      • No errors or warnings remain.

Turn-in Instructions

We will grade your Wiki contributions using ANGEL. Turn-in your programming work by committing it to your SVN repositories.