# Essay about Procedural Programming : Functions And Functions

797 Words Nov 9th, 2014 4 Pages
Procedural programming –Assignment 1

Contents
Introduction 1
Procedures 1
Functions and pre-defined functions 2
Local variables and global variables 2
Parameter passing 3
Programming libraries 5
Modularity 5
Bibliography 8

Introduction
Procedural programming is a method used by programmers for writing a computer program by defining each step of the coding that is used. This report will focus on and explain all the main features that a procedural program consists of. These will include; Procedures, Functions and Pre-defined functions, Local and Global variables, Parameter passing, Programming libraries, Modularity and Control structures.

Procedures
A procedure is a part of the program, which refers to a set of statements or instructions that are laid out in a certain order and perform a particular task. A procedure can be initiated at any time in the program.

Below is an example of a procedure that aims to store a name in a variable:

Functions and pre-defined functions
A function is similar to a procedure but the difference is that a function outputs a result or value after performing its task whereas a procedure does not output any value. A function always starts with the ‘def’ (define) statement and can be initiated at any time in the program like a procedure.

Below is an example of a function that is being defined. (Fibonacci function):

A pre-defined function is a function that is already built in the program. Such as ‘print’.

Local variables and global…

## Related Documents

• ###### Pbject Oriented Programing Essay example

Object-oriented Programming (OOP) / Event-Driven Programming (EDP) versus Procedural Programming (PP) Strayer University CIS Computer Programing Design Francis Straz Dr. Kolta 03/15/14 In OOP, code and data are merged into one standard item, an object. An object is an abstraction of a set of real-world item. The object would contain all information and functionality for that item; ideally, information about a particular item should reside in only one place in a system. Programmer’s information…

Words: 877 - Pages: 4
• ###### Reusability of Code Essay

Object-oriented programming (OOP) and procedural programming are two programming paradigms. Procedural programming is a method of writing software. It is a programming practice centered on the procedures or actions that take place in a program. Object-oriented programming centers on the object. Object-oriented programming creates objects from abstract data types that encapsulate data and functions together (Gaddis 2010). There are many similarities and differences in terms of procedural programming modules…

Words: 793 - Pages: 4
• ###### Essay Features Of Procedural Programming Language

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…

Words: 1292 - Pages: 6
• ###### Exploring Programming Languages Essay

Exploring Programming Languages 1970s * Pascal * Developed 1970 * originally developed by Niklaus Wirth, a member of the International Federation of Information Processing (IFIP) * principle objectives, allow for the development of well structured and well organized programs, and to serve as a vehicle for the teaching of the important concepts of computer programming * named after the mathematician Blaise Pascal * C * Developed 1972 * C was created…

Words: 777 - Pages: 4
• ###### Essay Procedural Language And Procedural Languages

Language Types • Procedural The programming style you 're probably used to, procedural languages execute a sequence of statements that lead to a result. In essence, a procedural language expresses the procedure to be followed to solve a problem. Procedural languages typically use many variables and have heavy use of loops and other elements of "state", which distinguishes them from functional programming languages. Functions in procedural languages may modify variables or have other side effects…

Words: 2124 - Pages: 9
• ###### Essay Procedural Language And Procedural Programming

What is a procedural programming? Procedural language is one of the most common way of programming. This programme is a way of explaining how a computer programme writes a programme. This technique of creating software or an application is all about keeping the code as simple as possible. Some examples of procedural programming languages include C, Fortran or Pascal. The programme language contains straight forward steps and procedures within its programming context to create a programme for the…

Words: 1113 - Pages:
• ###### Essay Python : An Object Oriented Programming Language

Python is an object oriented programming language, with very clear syntax, that incorporates modules, classes and dynamic typing. Python was created by Guido van Rossum, a Dutch programmer. At his time working at CWI, a Dutch research institute, in a group that involved the distribution of the Amoeba operating system, he wanted a better and easier way to do system administration other than using C programs. Van Rossum wanted a language that could be used in the Amoeba systems with a similar syntax…

Words: 1371 - Pages: 6
• ###### Different Types Of Programming As Object Oriented Programming

are different types of programming such as object-oriented programming (OOP), event-driving programming (EDP), and procedural program, (PP). Some people may agree that there are advantages of using OOP instead of only using PP. A class may have one attribute and one method, in which the class represents an event, the attributes the class stores and the purpose of the method. The class, attributes, and methods share a relationship. Visual Logic is used to learn about programming but lacks in OOP features…

Words: 1133 - Pages:
• ###### Essay Procedural Language And Object Oriented Language

have knowledge on programming and its simple for those who worked on other programming languages. For example, if we consider a car, it has engine, battery, mirrors, seats and other parts. An object is considered as consists of attributes and behavior. A car can be driven, parked and serviced etc. Hence an object consists of both data and behavior. The basic difference between procedural language and Object-oriented language is this both. To be more specific, in procedural language, we need to…

Words: 1576 - Pages: 7
• ###### Essay P1 : Features Of Programming Languages

6 Assignment 3 P1: Features of programming languages Procedural programming language- This is a type of program that represents how a program works. This type of programming language uses instructions that require a task to perform step by step. Procedural programming can only work if the instructions are step by step because it makes it easy to read and understand and three types of examples are selection, iteration and selection. A typical example of procedural language is COBOL: There are many…

Words: 1400 - Pages: