Features Of Procedural Programming Language Essay

1292 Words Nov 27th, 2016 6 Pages
Features of Procedural Programming Language
Procedures
A procedure is able to fulfil some concrete task and is referenced within a larger body of source code as it’s an independent code module. This kind of code item can also be called a function or a sub-routine. The fundamental role of a procedure is to offer a single point of reference for some small goal or task that the developer or programmer can trigger by invoking the procedure itself.
Modularity.
Modularity is a general term which relates to the creation of software in a way which allows individual modules to be developed, often with a standard interface to let modules to communicate with each other.
Pre-defined functions
These are functions that already know their purpose before you use them as in it’s already programmed in. An example of this is in java is:
System.out.println("total number");
When this function is used it knows that it has to put the words you have used on the screen for the user to see, there are many pre-defined functions in java and they are very use
User-defined functions
A user defined function is a programmed routine that has its parameters set by the user of the system. User defined functions often are seen as programming shortcuts as they define functions that perform specific tasks within a larger system, such as a database or spreadsheet program.
Here’s an example with Python. def defArgFunc( empname, emprole = "Manager" ): print ("Emp Name: ", empname) print ("Emp Role ",…

Related Documents