






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







1 , i^2 ,..,in)
for I in 1 loop
for I in 1 loop for J in 1 .. N loop Put (B(I,J)); end loop; end loop;
design a record
declare record types and variables
use a record
Get (A(I));
end loop
data structure diagram to show the relevant information names for the overall structure, and for the individual fields
data types of the fields
name phone sex age weight
persons
in this application
another of identical type
a single operation. You must read each field separately.
in a single operation. You must display each field separately.
procedure:
phone weight
age sex
persons
name title
fname
sname
line?
PUT ("Student Results Report"); SET_LINE (4); SET_COL ( 5); PUT ("Student name"); SET_COL (35); PUT ("Assignments"); SET_COL (50); PUT ("Exams"); SET_COL (65); PUT ("Average"); SET_LINE (6);
reached
for i in 1 .. 20 loop PUT (i**2, width => 5); ; (^) ' 1 4 9 16 25 36' ‘ 49 64 81 100 121 144' ' 169 196 225 256 289 324' ' 361 400'
end loop
open (filevar, in_file, filename); --code to read from the file reset (filevar); --code to read the file all over again close (filevar);
Go back to beginning (optionally) change mode File must be open already
-- read file twice
Free