CSSE 220 – Object-Oriented Software Development
Homework 14
Objectives
Practice with designing and implementing classes. Learn the UMLet tool for drawing UML class diagrams.
Tasks
-
Complete the assigned reading for the next session: Big Java §9.1–9.5.
- As you read, see if you can answer the self-check questions (for the Big Java reading).
- Bring your questions to class!
-
Complete the assessment exercises over this reading on ANGEL (under Lessons → Assignments).
- Pair Programming: Complete the Game of Life program that you do with your partner.
- The project instructions are in Homework 11.
- Make arrangements to meet with your partner as needed.
- You must do this with pair programming — if your partner does not cooperate,
ask your instructor what to do. Do NOT do the project by yourself.
-
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.
- Individual Programming: Complete the Static project that you began in class, as follows:
- Run the program.
- Note that the least/most number of sides data is shown but is -1 (not yet implemented).
- Read all the TODO’s in the Polygon class.
- Do and test the TODO’s for most number of sides, asking questions as needed.
- Do and test the TODO’s for least number of sides.
- You might find Integer.MAX_VALUE helpful.
-
You should have completed the following in class, nothing to turn in for this item for homework:
- Using CRC cards, develop a design for a program that lets two players play chess against each other.
- Assume that the players enter moves in the (single, shared) console, but that the board is displayed in a window.
- You will do this in groups of 3 or so, who share a single set of about 10 index cards.
- Convert your CRC cards to a UML class diagram. Show the relationships between the classes, but you need not show the details (attributes and operations) for each class.
- Each individual should draw their own diagram.
-
Install UMLet:
Download and install the UMLet program for drawing UML diagrams by following
these instructions.
-
CRC card and UML class diagram exercise : Use UMLet to draw a UML class diagram for
our CRC cards for Chess.
- Draw only the classes and relationships (NOT the insides of the classes).
- Exception: Draw the insides (that is, the attributes (that correspond to fields) and operations (that correspond to methods)) for the ChessDisplayer and ChessMove classes.
- Print your completed UML class diagram and bring paper copy to class.
Turn-in Instructions
Turn in your programming work by committing it to your SVN repository for this project. Bring your written work to class.