Topics for Week #4 Chapter 5
Topics for Week #4 -- Chapter 8
BLOCK
What is a BLOCK?
Scope Rules -- Local vs Global
Example -- Local Variable
Example--Local & Global Variables
Summary Block B
Functions
User Defined Function
Good Programming Rules for Functions
Examples - Function Headers
Example -- Function
Data Flow
F(x)
Pex6F99.Pas
Program Debugging
Pre/Postconditions
Example -- cosh(x)
Data Flow -- Cosh(x)
Example --Newton’s Method (Pex8F99.pas)
PPT Slide
Email: symes@cs.uregina.ca