Next:
Simple Subroutines
Up:
Structured Programming in Pascal
Previous:
How to submit?
Contents
Subroutines
Subsections
Simple Subroutines
Example
Why Use Subroutines
Introduction to Subroutine
Global Variables and Subroutines
Our Example
What's Next?
Assignment
The New Program
How to proceed?
Method 1
Method 2
How to turn it in
Parameter Passing for Subroutines
What is a parameter?
Parameter Definition Syntax
First Contact with Scope
Invoking Subroutines with Parameters
Nested Invocation
Functions
What is a Function? How is It Different from a Procedure?
More about the Syntax
Homework Assignments (100 points, due one week from assignment date)
Local Variables
The Concept
The Syntax
Local Variables and Parameters Passed by Value
Homework assignment, 100 points (due in one week)
Tak Auyeung 2003-12-03