Computer programs are written using one of the programming languages (FORTRAN, C, C++ and so on). A program has a set of instructions written in correct order to get the desired result.
The method of writing the instructions to solve the given problem is called programming.
Programming Techniques:
There are two types of programming techniques commonly used-
(i) Procedural Programming
(ii) Object Oriented Programming(OOP)
(i) Procedural Programming :
In procedural programming , for a given problem, variables are identified and instruction are written using the variables in the correct sequences to get the required result. Sometimes the program may required unconditional transfer of control from one part of the program to another using GOTO statements.
The procedural programming method is commonly used to solve scientific and engineering problems involving variables.
Descrete results are expected as the output of the program .
(ii) Object Oriented programming (OOP) :
In object oriented programming, objects which have data releated to a person or item are used. The program can be written using many functional blocks. The functional block contains instructions similar to procedural programming.
Object oriented programming method is commonly used to develop software packages. C++ is one of the commonly used object oriented programming languages.
0 Comments