Homework for Mr. Z's APCS class (period 2)