This is an archived course. A more recent version may be available at ocw.mit.edu.

Assignments

This section contains problem sets that students worked on in the twice-weekly lab sessions, and then completed as homework assignments.

WEEK # TOPICS ASSIGNMENTS SOLUTIONS
1 Basics

Problem set 1 (PDF)

Problem set 2 (PDF)

(PDF)

(PDF)

Control structures
Functions
2 Arrays

Problem set 3 (PDF)

Problem set 4 (PDF)

(PDF)

(PDF)

Pointers
Classes, part 1
3 Classes, part 2

Problem set 5 (PDF)

Problem set 6 (PDF)

(PDF)

(PDF)

Object-oriented programming
4 File handling Problem set 7 (PDF)

(PDF)

Comprehensive case study, Standard Template Library (STL)