UMBC CMSC201, Computer Science I, Fall 1994
Sections 0101, 0102 and Honors
Tuesday October 11, 1994
Assigned Reading: 5.2 - 5.3
Handouts (available on-line): none
Topics Covered:
- Reviewed the factorial program.
(See last Thursday's lecture notes.)
- A program that illustrates the properties of local variables.
Program and
sample run.
- A program uses a function which calls the factorial function
to compute the combinations of "n choose k".
Program and
sample run.
- Practice tracing function calls using question from last
semester's midterm exam. The problem is to write down
the output of the following program.
Sample solution.
Last Modified:
Thu Oct 13 09:54:31 EDT 1994
Richard Chang, chang@gl.umbc.edu