TOPIC K: Procedure Headers
Contents :
Procedure headers.
Exercises :
D1: IO library.
-
Bekijk de definities van de IO library in IO.def (zie DEF folder onder
XDS).
S1: Define.
Write procedure headings for the following cases. Show how you can call
those procedures.
-
A procedure which calculates the sine of a number.
-
A procedure which solves TopcA-S2 (create
the arrow of '***'s).
-
A procedure which solves a second degree linear equation.
-
A procedure which searches a number in a file (parameter of a given type
FILE (het type is gegeven)), returns the line number of the found
number, and also indicates whether the number was found or not.
-
A procedure which puts an informative text on the screen.
S2:
S3:
X1:
-
H1:
H2:
-
T1: Output
-
What is the output of the following program?
MODULE Test1;
FROM IO IMPORT WrLn, WrCard, RdCard;
BEGIN
END Test1.