Homework for the first term of AP Computer Science.