CMPSC 201 - Ch. 6 Resources

Lecture Notes (functions)

Demo Program #1 - the use of void functions (functions that do not return a value). One void function has a parameter and the other does not.

Demo Program #2 - the use of a function that does return a value but that does not have any parameters

Demo Program #3 - the use of functions and a global variable (which is dangerous and usually inappropriate.)

Demo Program #4 - the use of two functions

Ch. 6 Worksheet #1 - various examples of functions

Ch. 6 Worksheet #2 - practice writing functions

Ch. 6 Worksheet #3 - more practice writing functions


CMPSC 201 Home Page