ABSTRACT

In computing, functions and procedures are groups of instructions that perform a specific task. A function is in particular a called instruction grouping which performs a particular task and returns a value. Functions are a simple way to divide the coding into chunks that allow us to order, read, reuse and save. Functions are also a vital way for programmers to exchange their programming interfaces. On the other hand, a procedure, also called a routine, performs a specific task but does not return a value. Functions and procedures, and variations thereof, are fundamental to all programming languages. Functions are therefore useful for conducting a specific task multiple times or repeatedly throughout a program by reusing a designated block of code. A function runs only when it is called. A function may be set up such that some data is passed into it for it to execute. The data or parameters passed into a function are called arguments.