FIT100
Summary
Functions are packages for algorithms
•They follow a series of rules, that quickly become intuitive
•Functions have both a declaration and a call
•Functions have both parameters (in the declaration) and arguments (in the call)
•Scope refers to the region of a program where a variable is “known”
Functions show what it means to be “precise enough” when describing what to do