The systematic and organized principle of writing a program is called as programming paradigm. It contains Procedural programming approach, Structural programming approach and Modular programming approach.
Procedural Programming Approach
In Procedural Programming, the problem is viewed in a sequence manner. It follows the concept of top-down approach. A top-down approach starts from the main module and then their subroutines and so on.
Advantages of Procedural Programming:
- Easy to trace the bugs.
- Easy to traversal the program.
Disadvantages of Procedural Programming:
- In large program it is very difficult to identify what data is used by which function.
- It does not allow reusability of code.
Structural Approach refers to the process in which we break the overall job into separate pieces of modules. It is necessary to reduce the complexity of the program.
Advantages of Structural Approach:
- Modification or enhancement in programs becomes easier.
- Reduce debugging time.
- Allows several programmers to code simultaneously.
A module is a logical part of a program. It is a set of related procedures with the data they manipulate is called a module. It module may be a macro, a function, a procedure, a process or a package.
Advantages of Modular Approach:
- Tracing of error is easier.
- Modules can be kept separately in a library and used anywhere in the program without re-writing them.
- A module can use other modules.
- It saves development time as we can reuse the code again and again.
Bottom up approach starts from the bottom level of operation and then a higher level until the stage is reached.
Advantages of Bottom-up Approach:
- It can handle the increasing complexity of program that are reliable and maintainable.
- It enables programmers to write complex programs easily.
- It is useful when designing the complex systems like operating system, networking software system etc.