Homework Assignments: Text and Code


Homeworks 1, 2, 3, 4, 5, 6, 7, 8

Homework 1
Due: Monday, April 7, at 1:35 pm in class

Text for 1B
Text for 1C
Downloads
back to the top

Homework 2
Due Date: Monday, April 14, at 1:35 pm in class

The goal of this homework is to learn how to design a single class with its methods, and how to design class hierarchy using composition.

Required: 2.1, 2.2, 2.3, and 2.7
Extra credit: 2.4, 2.6 

Text (also as pdf)

Code and Project: HW2student .zip
or HW2student .exe

back to the top

Homework 3
Due Date: Monday, April 21, at 1:35 pm in class

The goal of this homework is to learn how to design a class hierarchy with abstract class and its derived variants, and to design methods for these hierarchies.

Required: 3.1, 3.3, 3.4, and 3.5
Extra credit: 3.2, 3.6 

Text (also as pdf)

Use the given code and UML for Exercise 3.1
Use the given UML for Exercise 3.2

Exercise 3.1:
Ex3-1Code.zip
Ex3-1Code.exe
Person etc. Hierarchy (pdf)
Person etc. Hierarchy (doc)
Exercise 3.2:
Grocery Item Hierarchy (pdf)
Grocery Item Hierarchy (doc)

back to the top

Homework 4
Due Date: Monday, April 28, at 1:35 pm in class

The goal of this homework is to learn how to design class hierarchy for self-referential data that represents a list of items.

Required: 4.1, 4.2, and 4.5
Extra credit: 4.3 

Text (also as pdf

UML for 4.1 and 4.5 (.doc .pdf )
Code and Project: HW4student .zip
or HW4student .exe

back to the top

Homework 5
Due Date: Monday, May 5, at 1:35 pm in class

The goal of this homework is to practice design recipes for self-referential data in a more complex setting.

Required: 5.1, 5.2
Extra credit: 5.3

Text (also as pdf)

Code and Project: HW5student .zip or HW5student .exe

back to the top

Homework 6:
Due Date: Monday, May 12, at 1:35 pm in class

Required: 6.1, 6.2, 6.3

The goal of this homework is to learn how to design and implement interfaces - and how to use casting when needed.

Text (also as pdf)

UML for Exercise 6.1 (pdf)
UML for Exercise 6.1 (doc)
Code for Exercise 6.1 (zip)
Code for Exercise 6.1 (exe)

Homework 7:
Due Dates
7.1, 7.2: Monday, May 19, at 1:35 pm in class
8.1, 8.2: Thursday, May 22, at 1:35 pm in class

The goal of this homework is to practice work with complex data structures,
and to learn how to use anonymous inner classes to implement functional abstraction.

Required: 7.1, 7.2, 8.1, 8.2

Text (.pdf)

UML for Exercise 7.1 (pdf)
UML for Exercise 7.1 (doc)
Code for Exercise 7.1 (zip)
Code for Exercise 7.1 (exe)

Code for Exercise 8.1 (zip)
Code for Exercise 8.1 (exe)

Code for Exercise 8.2 (zip)
Code for Exercise 8.2 (exe)


Homework 8:

Due Date: Thursday, May 29, at 1:35 in class

Required: 9.1, 9.2, 10.1, and completion of all code in Lab 9.

Text (.pdf or .tex)

Iterator Sample code (zip)
Iterator Sample code (exe)

Problem 91. and 9.2 code (zip)
Problem 9.1 and 9.2 code (exe)

Other

Exercises.pdf - Exercises.html - All exercise set text in one document.
(This document is subject to change, as the course progresses.)

back to the top