Homework and projects for first-semester computer science