Program calculation
is
a method for:
CD
Programming the calculation
or
formula
to
be
executed.
(2)
Storing the program
in
the computer.
@Obtaining
the result automatically by simply
inputting
data in the program.
Let's examine the programming concept
and
procedure required
to
process a given
problem using the computer.
•
Programs
and
Programming
When computer
users
process a problem, they compose instructions which
are
written
in a language
that
the computer
can
understand. These instructions
are
called a
"pro-
gram" and composing these instructions
is
known
as
"programming".
•
What
is
a
program?
In order
to
make a program, there
are
various rules
or
grammar. This
will
be
explained
later
in detail.
At
this
time
let's take a look at
an
example
of
a simple, fundamental
program
to
see
what
it
looks like.
Command Operand
I I
1e INPUT
A.B-----I
nput
statement
20
C=A+B Operation statement
30
PR
INT
C
Output
statement
The above
is
a fundamental program which consists
of
an
input
statement,
an
operation
statement,
an
output
statement, and line numbers.
An
input
statement
is
used
to
enter
the data.
An
operation statement
is
used
to
process that data.
An
output
statement
is
used
to
retrieve the execution result. Line numbers are
used
at the beginning
of
each
line. The operation statement
can
include judgment statements and cover many lines
to
make a long and complex program. Also following the line number, a line consisting
of
one word appears. This
word
is
called a
"command"
and
it
tells the computer what
to
do
next. Following this command
is
a character string which contains
information
required
to
process the command. This
is
called the
"operand".
-27-