SlideShare a Scribd company logo
FUNCTIONS AND
PROCEDURES
ENIAC SOLUTIONS SAS.
TG. JOHN ALEXANDER CÁCERES
TG. JONATTAN GERMAN MURILLO MARTÍNEZ
TG. DIEGO FABRIANNY GONZÁLEZ SÁNCHEZ
INTRODUCTION
• Functions and procedures are known as applets
• However, from an application point of view, there is a fundamental difference between
processes, functions or procedures: while the former aims to immediate use in the main
code, the other aim use in libraries, its purpose is to store common pieces of code, so it
can be reused or shared with other projects.
• In programming procedures and functions they are also known by the name
routines, subroutines or subprograms. They are blocks of instructions that perform tasks
specific. The routines are declared only once but can be used by calls,
Sometimes all you want in a program. A routine is independent from the rest of
program so in principle facilitates the design, monitoring and correcting a
program. They can also be stored in collections called independent bookstores
units, allowing them to be used in any program
FUNCTIONS
• A function is a sequential code section.
• Its purpose is to create code to deal with common design problems,
such as:
Data type conversion,
Logical operations,
Arithmetic and
New operators and attributes.
• The functions are similar to the processes, since they can be used in
both statements (IF, WAIT, CASE, LOOP) except WAIT.
• Important. The function will always return a value, while procedures
do not.
FUNCTIONS
• To make and use a function, two parts are necessary: the same
function (function body) and the call to the function. Its syntax
is as follows:
• Example:
Name: f1, three parameters: a,b and c, a and b are constants.
FUNCTIONS EXAMPLE
• is not necessary to place the constant word because the system
defaults, while c is a signal
• a y b they are integer, whereas c is the vector type.
• Called:
Video
PROCEDURES
• A procedure is very similar to a function and has the same purpose.
However, a method may return more than one output value.
• Procedure body
• Here specific inputs and outputs
• A procedure can have any number of input parameters, output or
input-output, which in turn can be signs, variables or constants.
THANK YOU FOR ATENTION…

More Related Content

What's hot

FPL -Part 2 ( Sem - I 2013)
FPL -Part 2 ( Sem - I 2013)FPL -Part 2 ( Sem - I 2013)
FPL -Part 2 ( Sem - I 2013)
Yogesh Deshpande
 
Lecture2 1 types of programming languages
Lecture2 1 types of programming languagesLecture2 1 types of programming languages
Lecture2 1 types of programming languages
Yog Maya
 

What's hot (19)

Functions in c language1
Functions in c language1Functions in c language1
Functions in c language1
 
Programming Sessions KU Leuven - Session 02
Programming Sessions KU Leuven - Session 02Programming Sessions KU Leuven - Session 02
Programming Sessions KU Leuven - Session 02
 
Valuable Information on Lexical Analysis in Compiler Design
Valuable Information on Lexical Analysis in Compiler DesignValuable Information on Lexical Analysis in Compiler Design
Valuable Information on Lexical Analysis in Compiler Design
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Flowcharts
FlowchartsFlowcharts
Flowcharts
 
Algorithmic problem sloving
Algorithmic problem slovingAlgorithmic problem sloving
Algorithmic problem sloving
 
Pure functions and usage in Angular
Pure functions and usage in AngularPure functions and usage in Angular
Pure functions and usage in Angular
 
Chap1
Chap1Chap1
Chap1
 
Introduction ,characteristics, properties,pseudo code conventions
Introduction ,characteristics, properties,pseudo code conventionsIntroduction ,characteristics, properties,pseudo code conventions
Introduction ,characteristics, properties,pseudo code conventions
 
Static variables
Static variablesStatic variables
Static variables
 
FPL -Part 2 ( Sem - I 2013)
FPL -Part 2 ( Sem - I 2013)FPL -Part 2 ( Sem - I 2013)
FPL -Part 2 ( Sem - I 2013)
 
Pure functions
Pure functionsPure functions
Pure functions
 
Apl
AplApl
Apl
 
Basic of qbasic
Basic of qbasicBasic of qbasic
Basic of qbasic
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
Algorithm and flowchart2010
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010
 
Guerrero rullan ppt
Guerrero rullan pptGuerrero rullan ppt
Guerrero rullan ppt
 
Lecture2 1 types of programming languages
Lecture2 1 types of programming languagesLecture2 1 types of programming languages
Lecture2 1 types of programming languages
 
Imperative and-functional-programming
Imperative and-functional-programmingImperative and-functional-programming
Imperative and-functional-programming
 

Similar to Functions and procedures

Modularisation techniques new
Modularisation techniques newModularisation techniques new
Modularisation techniques new
Jeet Thombare
 
classVII_Coding_Teacher_Presentation.pptx
classVII_Coding_Teacher_Presentation.pptxclassVII_Coding_Teacher_Presentation.pptx
classVII_Coding_Teacher_Presentation.pptx
ssusere336f4
 
Chapter One Function.pptx
Chapter One Function.pptxChapter One Function.pptx
Chapter One Function.pptx
miki304759
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
SherinRappai
 

Similar to Functions and procedures (20)

C- language Lecture 4
C- language Lecture 4C- language Lecture 4
C- language Lecture 4
 
CPP11 - Function Design
CPP11 - Function DesignCPP11 - Function Design
CPP11 - Function Design
 
Modularisation techniques new
Modularisation techniques newModularisation techniques new
Modularisation techniques new
 
Programming language paradigms
Programming language paradigmsProgramming language paradigms
Programming language paradigms
 
Computer programming and utilization
Computer programming and utilizationComputer programming and utilization
Computer programming and utilization
 
Chapter Introduction to Modular Programming.ppt
Chapter Introduction to Modular Programming.pptChapter Introduction to Modular Programming.ppt
Chapter Introduction to Modular Programming.ppt
 
Introduction to Functional Programming
Introduction to Functional ProgrammingIntroduction to Functional Programming
Introduction to Functional Programming
 
classVII_Coding_Teacher_Presentation.pptx
classVII_Coding_Teacher_Presentation.pptxclassVII_Coding_Teacher_Presentation.pptx
classVII_Coding_Teacher_Presentation.pptx
 
Basics of cpp
Basics of cppBasics of cpp
Basics of cpp
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
 
object oriented programming examples
object oriented programming examplesobject oriented programming examples
object oriented programming examples
 
Programming Sessions KU Leuven - Session 03
Programming Sessions KU Leuven - Session 03Programming Sessions KU Leuven - Session 03
Programming Sessions KU Leuven - Session 03
 
C programming
C programmingC programming
C programming
 
Chapter One Function.pptx
Chapter One Function.pptxChapter One Function.pptx
Chapter One Function.pptx
 
Software engineering.pptx
Software engineering.pptxSoftware engineering.pptx
Software engineering.pptx
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
 
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptxCOMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
 
Problem-solving and design 1.pptx
Problem-solving and design 1.pptxProblem-solving and design 1.pptx
Problem-solving and design 1.pptx
 
Oop.pptx
Oop.pptxOop.pptx
Oop.pptx
 
Optimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewOptimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - Overview
 

Recently uploaded

Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
AbrahamGadissa
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 

Recently uploaded (20)

A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdf
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Scaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageScaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltage
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfRESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
 
Peek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdfPeek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdf
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 

Functions and procedures

  • 1. FUNCTIONS AND PROCEDURES ENIAC SOLUTIONS SAS. TG. JOHN ALEXANDER CÁCERES TG. JONATTAN GERMAN MURILLO MARTÍNEZ TG. DIEGO FABRIANNY GONZÁLEZ SÁNCHEZ
  • 2. INTRODUCTION • Functions and procedures are known as applets • However, from an application point of view, there is a fundamental difference between processes, functions or procedures: while the former aims to immediate use in the main code, the other aim use in libraries, its purpose is to store common pieces of code, so it can be reused or shared with other projects. • In programming procedures and functions they are also known by the name routines, subroutines or subprograms. They are blocks of instructions that perform tasks specific. The routines are declared only once but can be used by calls, Sometimes all you want in a program. A routine is independent from the rest of program so in principle facilitates the design, monitoring and correcting a program. They can also be stored in collections called independent bookstores units, allowing them to be used in any program
  • 3. FUNCTIONS • A function is a sequential code section. • Its purpose is to create code to deal with common design problems, such as: Data type conversion, Logical operations, Arithmetic and New operators and attributes. • The functions are similar to the processes, since they can be used in both statements (IF, WAIT, CASE, LOOP) except WAIT. • Important. The function will always return a value, while procedures do not.
  • 4. FUNCTIONS • To make and use a function, two parts are necessary: the same function (function body) and the call to the function. Its syntax is as follows: • Example: Name: f1, three parameters: a,b and c, a and b are constants.
  • 5. FUNCTIONS EXAMPLE • is not necessary to place the constant word because the system defaults, while c is a signal • a y b they are integer, whereas c is the vector type. • Called: Video
  • 6. PROCEDURES • A procedure is very similar to a function and has the same purpose. However, a method may return more than one output value. • Procedure body • Here specific inputs and outputs • A procedure can have any number of input parameters, output or input-output, which in turn can be signs, variables or constants.
  • 7. THANK YOU FOR ATENTION…