You are on page 1of 3

PROGRAMMING 3 PSEUDO-CODE MODULE STANDARDS

Module Names (e.g. Calculate_Net_Pay)

MODULE 1 • 2-4 words


• the first word should be a verb, and last
Flowchart - is a graphical representation of
should be a noun
algorithm.
• intermediate words should be adjectives
• Process Flowchart (PFD) – illustrates • the first letter of the first word should be
and analyzes the overall flow of capitalized
activities in producing a product or • the words should be joined with
service; can be used for water treatment underscores
and processes, piping and irrigation
systems, etc.
• Data Flowchart (DFD) – shows the way A pseudo-code module has the same form
data is processed; can be use for data as a complete program pseudo-coded
management, an overview of the algorithm, except that the terminator used
system, where the data will come from for a sub-module is RETURN (instead of
and go to. END).
• Business Process Modeling Diagram
(BPMN) – is used for creating graphical FLOWCHART MODULE STANDARDS
models of business process operations;
can be used for illustrating business
processes of an organization, and more.

FLOWCHART SYMBOLS AND THEIR


USAGE

Note:
• References to a sub-module are drawn
as boxes with vertical double sides.
• A sub-module flowchart definition starts
with the sub-module name (in a rounded
box) and ends with a Return (also in a
rounded box);
STRUCTURES
• Sequence – steps
• Decision – if then… else or a conditional
WHERE, HOW AND WHY WE USE COBOL
• Loop – repeat tasks
• Case (Selection) – switch case • one of the most important programming
languages in mainframe
• is used in multiple industries like retail, The American National Standards
healthcare, insurance, finance, etc. Institute (ANSI) has since produced
• can run without any changes in modern several revisions of the COBOL standard,
mainframe server including:
• is a procedural language that works well • COBOL-68
in legacy applications • COBOL-74
• COBOL-85
INTRODUCTION OF COBOL • COBOL 2002

• COBOL stands for Common Business


Oriented Language From 2002, the ISO standard is also
• it started in 1959 by CODASYL available to the public coded as ISO/IEC
committee (Conference on Data 1989.
Systems Language)
• appear like an ENGLISH language. LEGACY
• ANSI (American National Standards
COBOL programs are in use on operating
Institute) improved this in the year 1965
systems such as IBM’s z/OS, Microsoft’s
and 1974, and was introduced in 1985,
Windows, and the POSIX families
with new features
(Unix/Linux etc.)

COBOL HISTORY
COBOL ADVANTAGES
The development of the language was a
• It is machine independent
project sponsored by the United States
• It is easy to maintain
Department of Defense (DoD) that
• It is easy to understand
included a consortium of computer
• It is self-documenting
companies including IBM, Honeywell,
• It is non-proprietary (portable)
Sperry Rand, and Burroughs; to create a
• COBOL programs are uniquely
programming language with:
organized; four divisions
• portability between computer systems • A COBOL program can handle
• more English-like syntax than other voluminous commercial data processing
languages of the time (e.g., FORTRAN) using only a few statements
• COBOL as defined in the original
HISTORY OF COBOL STANDARDS specification included a PICTURE
clause for detailed field specification
The specifications approved by the full
• COBOL has many reserved words (over
Short Range Committee were approved by
400), called keywords
the Executive Committee on January 3,
1960, and sent to the government printing
office, which edited and printed these FEATURES OF A COBOL PROGRAM
specifications as COBOL 60. A. English-like syntax
B. Unusual length compared with programs - all Statement, Sentence, Verbs,
written in other languages. Clause, Characters, and Words must
C. Column-sensitive organization of the start in Area B.
program. 5. Program Identification Area (Column
D. Spacing between any two-program 73-80)
segments. - the idea of using this area was to
E. Use of indentations. enter the program identification of
each individual lines in the code.

STRUCTURE OF COBOL PROGRAM


• A COBOL Program is divided into
DIVISION. Each DIVISION in COBOL
Programs is further divides into
SECTION.
• A SECTION is further divided into
PARAGRAPH.
• PARAGRAPH is divided into multiple
SENTENCE.
• A SENTENCE contains STATEMENT.
• A STATEMENT is subdivided into
CLAUSE or VERB.
• At the lowest Level, we have
CHARACTER or WORD.

COBOL CODING RULES


There are 5 areas in COBOL Program:
1. Sequence Number Area (Column 1-6)
- stores the Sequence numbers. And
it’s number is for labeling a source
statement line.
2. Indicator Area (Column 7)
- you can start Comments,
Continuation or Debugging mode
(D) in this Indicator Area.
3. Area A (Column 8-11)
- all Division, Section, Paragraph, Start
Declarative, End Declarative, 01 Level
number must start in Area A.
4. And Area B (Column 12-72)

You might also like