Featured Posts

Procedure Oriented Programming.

Procedure Oriented Programming :-

      Procedure oriented programming basically consists writing a lists of instructions  for the computer to follow and organizing these instructions into groups known as functions.
     In a multi-function program, many important data items are placed as global, so that they may be accessed by all the functions.  Each functions may have its own data.

Fig. Relationship of data and functions in procedural programming

   Some of the procedure oriented language are C, COBOL and PASCAL.

      Procedure oriented languages is a conventional programming using high level language such as COBOL, FORTRAN AND C is commonly known as procedural language.

     Languages that uses procedure-oriented approach are called procedure oriented languages.
In procedure-oriented approach the problem is viewed as a sequence of things to be done, such as reading, calculating and printing. 

* A number of functions are written to accomplish these tasks.  The primary focus is on functions.

A typical program structure for procedural program is shown in figure.

# Characteristics of procedure-oriented language programming :->

1.  Emphasis is on doing things ( Algorithms ).
2.  Large programs are divided into smaller programs known as functions.
3.  Most of the functions share global data.
4.  Data move openly round the system from function to function.
5.  Functions transforms data from one form to another.
6.  Employs top-down approach in program design.

# Drawbacks of procedure-oriented approach:->

1.  It doesn't model real world problems very well.  This is because the functions are action-oriented and do not really correspond to elements of the problem.
2.  Global data are more vulnerable to an inadvertent change by a function.  In a large program it is very difficult to identify what data used by which functions.

Post a Comment


www.posthatke.com. Powered by Blogger.

Google+ Followers

Copyright © www.posthatke.com | Blogger Templates | Designed By posthatke.com