Programming I CH 1
Programming I CH 1
For example, a command, such as LIST, might display all the records in a file on
screen, separating fields with a blank space. In a procedural language, all the logic
for inputting each record, testing for end of file and formatting each column on
screen has to be explicitly programmed.
Fourth generation languages have a minimum number of syntax rules. This saves time
and free professional programmers for more complex tasks.
Some examples of 4GL are structured query languages (SQL), report generators,
application generators and graphics languages.
Terminal point
Input output
Process box
Decision
Flow line
Example: draw the flow chart for an algorithm that accepts a number from the user and checks if
that number is even or odd?
Start
Enter the
number
Num
True /2==0 False
Display Display
The number The
is even number is
odd
End