FIT   100
© Copyright University of Washington 1999-2000
The Idea of Procedures
vProcedures encapsulate computation for general application
oA procedure’s operation should be hidden from view
oIt must be possible to give data to a procedure and get results back from the procedure
oAll of the possible eventualities must be considered
vThe procedure concept has two parts:
oA procedure “declaration” -- defines how computation goes
oMany procedure “calls” -- requests to have the procedure performed
v
v
The fundamental idea of procedures: Whenever
the procedure is called, “substitute” its definition