Program  calculation  is  a  method  for-
0 Programming the calculation contents to be executed.
(2) Storing the program in the cotnputer.
(|)Using that program, obtaining the result automatically by simply inputting data.
Let's examine the programming concept and programming procedure required to
process a given problem using the computer.
• Programs  and  programming
When computer users process a problem using a computer, they compose instructions
which  are  written  in  a  language  that  the  computer  can  understand. These  instructions
are called a "program" and composing these instructions is known as "programming".
• What is a program?
In order to make a program, there are various rules or grammar. However, 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
1 0  I N P U T  A , B  —  I n p u t  s t a t e m e n t
2 0  C  =  A  +  B  O p e r a t i o n  s t a t e m e n t
30  PRINT  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  input
the  data. An  operation  statement  is  used  to  process  that  data. An  output  statement  is
used to output the execution result. Line numbers are used at the beginning of each
line. In the case of the operation statement, not only one but many can be used or
judgement statements can be added to make a long and complicated program. However,
fundamentally speaking, they are all the same. Also, on one line, following the line
number, there is a word which consists of letters of the alphabet which has a special
meaning  and  which  tells  the  computer  what  to  do  next.  This  word  is  called  a
"command". Following this command is a character string which contains information
required to process the command. This is called the "operand".
-27-