CP 107 Lecture 4
The
purpose of lecture notes is to outline what the instructor intends to teach and
give the student any reading assignments and pre lab exercises to do in
preparation for lab. Student should
assume that the material covered and assignments given in lecture notes should
help to prepare the student for the lab assignment.
Lecture 4
We
will start with chapter 3 "Functions".
We will complete chapter 3 in the next class.
Objectives
 | An introduction
to functions
 | To understand
how to construct small modular programs using functions.
 | Scope rules.
 | To understand
the mechanisms used to pass information to and from functions.
 | To understand
how to pass an argument to a function by value and by reference
|
| | | |
Course Material
Chapter
3 Slides
Assignments for next week
Finish
reading chapter 3 "Functions"
Lab
assignment 4 that is due the next week
|