Introduction to Programming
Introduction to Programming |
|||
Introduction |
In this section a gentle introduction to programing in general, and to programming in COBOL in particular, is provided. This is done by writing some simple COBOL programs that use the three main programming constructs – Sequence, Iteration and Selection. Don’t worry if you don’t understand these programs at this point. The main purpose of this section is to give you a first look at some simple COBOL programs. |
||
| Let’s write a program |
A program is a collection of statements written in a language the computer understands. A computer executes program statements one after another in sequence until it reaches the end of the program unless some statement in the program alters the order of execution. Computer Scientists have shown that any program can be written using the three main programming constructs; This section introduces COBOL programming by writing some simple COBOL programs using these constructs. |
||
Sequence Program Specification |
We want to write a program which will accept two numbers from the users keyboard, multiply them together and display the result on the computer screen. Any program consists of three main things;
|
||
Program Statements and Data items |
What COBOL program statements will we need to do the job specified above and what data items will we need to access?
|
||
Comments
Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!


