Sections 0101, 0102, 0103 and Honors, Fall 1995
Thursday October 5, 1995
Assigned Reading: 5.2 - 5.3
Handouts (available on-line): none
Topics Covered:
- A function that has a for loop inside and computes
the factorial of the parameter.
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.
- A program that illustrates the properties of local variables.
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:
Fri Oct 6 22:30:55 EDT 1995
Richard Chang, chang@gl.umbc.edu