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
1. Easy to trace the bugs.
2. Easy to traversal the program
Disadvantages of Procedural Programming
1. In large program it is very difficult to identify what data is used by which function.
2. 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
1. Modification or enhancement in programs becomes easier.
2. Reduce debugging time.
3. 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
1. Tracing of error is easier
2. Modules can be kept separately in a library and used anywhere in the program without re-writing them.
3. A module can use other modules
4. 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
1. It can handle the increasing complexity of program that are reliable and maintainable.
2. It enables programmers to write complex programs easily.
3. It is useful when designing the complex systems like operating system, networking software system etc.