It is technique that problem solving in “divide and conquer” method. It means program reach the complex problem step by step and break it into separate subclasses.
So, it is easy to solve the problem.
Each sub classes have the connection with others. So this type of style can be active when it comes to the complex solutions.
For example, if you want to calculate the month-end closing balance for a bank account, then the required steps would be as follows. First, you acquire the starting balance of the account and then you reduce all the debit amounts occurred during the month. After that, you add all the credit amounts occurred during the month. At the end of the process, you will get the month-end closing balance of the account.
Procedures also identified as routines, sub routines, methods, or functions (not to be confused with mathematical functions, but similar to those used in functional programming.
Examples of Procedural programming languages are C and Pascal.
Characteristic of procedural programming
• Modularity
It is generally describe, particularly in bulky, complicated program, Inputs are typically specified syntactically in the form of arguments and the outputs distributed as return values.
• Scoping
It is another technique that helps keep procedures strongly modular. It checks the procedure from accessing the variables of other procedures, including previous occurrences of itself, without explicit authorization.
Fewer modular procedures, frequently used in small or quickly written programs, tend to interact with a large number of variables, in the execution environment.
Because of the ability to specify a simple interface, to be self-contained, and to be reused, procedures are a convenient vehicle for making pieces of code written by different people or different groups, including through programing libraries.(Scanners,swing,io,…etc.)
• Records
It called as struts or compound data. A record is a value