CSSE 220 – Object-Oriented Software Development
Homework 6
Objectives
Practice with arrays and ArrayList
s in Java, in particular, two-dimensional arrays. Start reviewing for exam 1.
Tasks
- Complete the assigned reading for today's session (Big Java, §7.7–7.8), according to the course schedule.
- As you read, see if you can answer the self-check questions.
- Bring your questions to next class!
- Due by 1:00 PM Monday Complete the assessment exercise over this reading on ANGEL (under Lessons → Assignments).
- Complete the assigned reading on pair programming
- Due by 1:00 PM Monday Complete the assessment exercise over this reading on ANGEL (under Lessons → Assignments).
-
Exam 1 is coming up. Review the topics in chapters 1–7 of Big Java and write down at least two questions that you have about the material.
We will collect these in-class next session. While preparing for the exam, recall:
- You can ask questions via Piazza.
- The slides for the course are available on-line.
- Sample exams are linked from the course schedule.
-
Solo programming: This problem is due at the start of your next class session.
-
In Eclipse, checkout the TwoDArrays project.
- Complete the
TODO
items in TicTacToe
and TicTacToeTest
.
-
Pair Programming (Due Monday March 25 at 11:59 PM): Conway’s Game of Life. It is a pair programming problem, so do not work on it without your partner. We will
spend some of the next class period for working on this problem.
-
In Eclipse, checkout the GameOfLife project from your shared repository for this project:
- 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.csse.rose-hulman.edu/repos/csse220-201320-life-teamXX
where XX
is your team number as given by your instructor.
- 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 to HEAD... 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 SVN conflicts should not be a problem. (If
you do get stuck with one, start by going to the main course
webpage and following the link to "Resolving Subversion
Conflicts" Ask for help if you are still stuck.)
- Complete the
TODO
items in GameOfLife
and GameOfLifeTest
. The TODO
items are numbered in the order that you should complete them.
- Try some different initial configurations. The method
getGliderList()
in GameOfLifeMain
generates a list representing the classic glider formation.
- 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.
Remember, in all your code:
- Write appropriate comments:
- Javadoc comments for public fields and methods.
- Explanations of anything else that is not obvious.
- Give self-documenting variable and method names:
- Use name completion in Eclipse, Ctrl-Space, to keep typing cost low and readability high.
- Use Ctrl-Shift-F in Eclipse to format your code.
- Take care of all auto-generated TODO’s.
- Then delete the TODO comment.
- Correct ALL compiler warnings.
- Quick Fix is your friend!
Here is the grading rubric for this assignment.
Turn-in Instructions
Turn in your programming work by committing it to your SVN repositories.