Information Technology Reference
In-Depth Information
program-name
:
acctprint
define
acctfile
record
account-record
structure
account-number
integer(
9)
last-name
character
(18)
first-name
character
(15)
middle-initial
character
street-address
character
(25)
city
character
(15)
state
character
(2)
zip-code
integer(
5)
balance
signed
decimal
(6.2)
read
acctfile
into
account-record
print
account-number
print
last-name
print
first-name
print
middle-initial
print
street-address
print
city
print
state
print
zip-code
print
balance
end
The output will look like the following:
391023123
smith
chris
t
396 main street
buffalo
ny
14225
00001620
Obviously some explanations are in order, so let us start with
program-name
:
acctprint
.
As you could guess
program-name
is a keyword that we use to indicate the name of our program. We will be writing many
programs so we need to distinguish one from another. We do this with that keyword. The
name we choose here for our program is a variable,
acctprint
.