The exercises will help
you to master the basic concepts for the given week. Each assignment consists of an
etude and the main part.
Work out the etudes on your own before you meet with
your partner. When you meet, compare your solutions and discuss any problems you encountered. If you are
unable to complete the etudes by Sunday, ask questions in class, or see someone during their office hours.
Etudes are designed to give you a practice with the basic skills you need to understand for each week.
Keep your solutions in your portfolio, but do not hand them in. We will check them
when we check your portfolio.
Work on the main part of the assignment with your partner. Hand in
one joint program.
DUE DATES:
Homework assignments must be submitted by 10:00 pm on Wednesday unless otherwise specified.
Turn in each assignment with a Java comment on the top of the assignment that specifies
the following pieces of information:
- Assignment: (number)
- Name:
- ID: (last 4 digits only)
- Name:
- ID:
Omission of this information leads to immediate loss of all credit for the homework.
Week | Assignments | Due Date |
---|
|
Review HtDP: Loops, Accumulator style programs, World
| 9/13 |
|
Data definitions and class diagrams to represent classes; containment, union, mutual reference
| 9/20 |
|
Designing methods for simple classes including composition and conditional;
methods for containment, methods for self-referential
and mutually referential data
| 9/27 |
|
Designing methods, Using libraries: The World teachpack;
Abstracting classes: lifting fields, lifting methods, creating a super class, a union.
Deriving classes
| 10/4 |
|
Eclipse IDE; Project Management; Applications vs. Applets
| 10/11 |
|
Data integrity; Circular Data; Exceptions; Equality of Circular Data
| 10/18 |
|
Stateful Classes, Imperative Methods; Abstract Data Types. Equality.
Testing the effects; Imperative World
| 10/25 |
|
Abstracting over the data type, functional behavior, traversals.
Singleton pattern; Inner classes
| 11/1 |
|
Designing programs with iterators: recursion vs. iteration; ArrayList; Java loops
| 11/8 |
|
Implementing ADTs; Using libraries (Maps, hash tables, trees, priority queues);
Stress tests: Sorting out Sorting; JUnit
| 11/15 |
|
Project: Graph traversals: DFS, BFS, shortest path,
minimum spanning tree -- optimizing the performance, designing reusable code
| 12/3 |
|
Work on the Project. Portfolio Review
| 12/3 |