ABSTRACT

Serious programming in any language involves writing procedures. (In some languages these have other names, such as “function” or “subroutine”.) A procedure is a piece of a program (a sub-program) that is written to be used later. It is (normally) not executed immediately after it is written. Its execution can usually be controlled by supplying parameters or arguments using a functional notation when the procedure is executed or called. Procedures provide a mechanism for implementing the subtasks into which a programming task should be divided.