Programming using high level languages such as FORTRAN, COBOL, and C is known as procedure-oriented programming (POP). In POP, the said problem is viewed as a series of things to be done, and accordingly, the instructions are written. These instructions span a few lines or thousands of lines. Therefore, the problem is divided into tasks, and a number of functions are written to accomplish these tasks. The focus is on these functions, which form the backbone of POP.
A function has its own local data in addition to the global data that can be used by all the functions in a program. Since the focus is on accomplishing the tasks, not much attention is paid to the data used by the different functions. As a result, data are vulnerable to change by the functions. The following diagram shows the relation between global and local data and the functions in typical POP. POP is not very adept in modelling real world problems as the functions do not really correspond to the elements of the problem.
Features of POP
- Focus is on getting things done (algorithms).
- Large programs are divided into smaller programs called functions.
- Data can be accessed by any function in the system. As a result, functions transform data from one form to another.
- Follows top-down approach in program design.

No comments:
Post a Comment