Output - IBM 5110 User Manual

Apl
Table of Contents

Advertisement

6
Output
Because the output or result is the primary reason for a user-defined
function to exist, considering the output provides the best place to
start solving a problem. To do this, consider these questions:
1.
What results are required?
2.
How should the results be formatted?
3.
Who uses the results? For example, should the results be
displayed or printed, or should the results be stored in the active
workspace, on tape, or on diskette for later use?
Now, for the compound interest example, assume the answers to
these questions are:
1.
The amount of interest earned.
2.
The message THE INTEREST EARNED IS: followed by the
calculated interest earned.
3.
Finance officers will use the displayed results to evaluate
different plans.
Once you have answered these questions, you know the purpose of a
user-defined function.

Advertisement

Table of Contents
loading

Table of Contents