Docsity

Procedural Programming Languages: A Comprehensive Overview, Study notes of Object Oriented Programming

Partial preview of the text

Download Procedural Programming Languages: A Comprehensive Overview and more Study notes Object Oriented Programming in PDF only on Docsity!

PROCEDURAL LANGUAGES

Introduction to procedural languages

 (^) Procedural languages are computer languages used to define the actions that a computer has to follow to solve a problem. Although it would be convenient for people to give computers instructions in a natural language, such as English, French, or Chinese, they cannot because computers are just too inflexible to understand the subtleties of human communication.  (^) The high-level form of a procedural language frees a programmer from the time-consuming chore of expressing algorithms in lower-level languages such as assembly and machine language.

Features of Procedural programming

 (^) Programs are organized in the form of subroutines and all data items are global.  (^) Program controls are through jumps (gotos) and calls to subroutines.  (^) Subroutines are abstracted to avoid repetitions  (^) Suitable for medium sized software applications  (^) Difficult to maintain and enhance the program code.

Features of Procedural programming

Global Data

FORTRAN

 (^) We can safely say that FORTRAN (FORmula

TRANslator) was the first true high-level language.

 (^) FORTRAN I was released in 1957

 (^) FORTRAN II by 1958.

 (^) FORTRAN III depended heavily on the

architecture of the IBM 704

FORTRAN

 (^) FORTRAN IV, which was released in 1962. It added COMMON storage, double-precision and logical data types, and relational expressions as well as the DATA statements, which provided a simple facility to initialize variables.  (^) FORTRAN 77 by 1968  (^) FORTRAN 90 by 1991  (^) FORTRAN 95 by 1995  (^) FORTRAN 200X by 2001

ALGOL

 (^) ALGOL 60, which was expected to become a

universal tool with the addition of the following features: block, call by value and call by name, dynamic arrays, own variables, global and local variables, until, while, if then else, and recursion.

COBOL

 (^) FORTRAN did not suit their needs because business programs deal with large quantities of data but do not perform complicated calculations.  (^) COBOL programs are composed of four divisions, each one serving a specific purpose.  (^) The IDENTIFICATION division serves to identify the program and programmer.

COBOL

 (^) COBOL commands are written using English

words and syntax, and its variable names can be up to 30 characters long, making them very descriptive.

 (^) COBOL 74 improved indexed file handling,

specifically, ISAM (Indexed Sequential Access Method).

BASIC

 (^) Beginners All-purpose Symbolic Instruction

Code (BASIC) a time-sharing system.

 (^) Goals include ease of learning for the

beginner, hardware and operating system independence, the ability to accommodate large programs, and sensible error messages in English. BASIC became available in 1964.

PASCAL

 (^) Pascal incorporates the ideas of structured programming that started to appear in the 1960s, redefining ALGOL's concept of breaking down a program into modules, procedures, and functions, and also expanding on some of ALGOL's features by adding new data types and control structures. Its structure makes programs easier to read and maintain by people other than the original programmer.  (^) Although there are variations among Pascal compilers, the language has a fairly standard form, so programs are portable between different computers.

C Language

 (^) C is one of the descendants of ALGOL 60. It was developed in 1972 by Ken Thompson and Dennis Ritchie, both of Bell Laboratories.  (^) Their goal was to create a language that would combine high-level structured language features with those that control low- level programming. This makes C well suited for writing operating systems, compilers, and also business applications.

C Language

 (^) C makes it possible to work on bit data using

the bit operators for AND, OR, Exclusive OR, One's complement, SHIFT LEFT, and SHIFT RIGHT, giving programmers great control over data manipulation.