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

PPTX
Compiler lecture 04
PPT
Unit 1 psp
PPT
Cmp104 lec 7 algorithm and flowcharts
PPT
algorithm
PPTX
Csc240 -lecture_2
PPT
LabVIEW Introduction
PPTX
Compiler lecture 03
PPTX
Caap presentation by me
Compiler lecture 04
Unit 1 psp
Cmp104 lec 7 algorithm and flowcharts
algorithm
Csc240 -lecture_2
LabVIEW Introduction
Compiler lecture 03
Caap presentation by me

What's hot (19)

PPTX
Functions in c language1
PDF
Programming Sessions KU Leuven - Session 02
PPTX
Valuable Information on Lexical Analysis in Compiler Design
PPT
Lecture 4
PPT
Flowcharts
PDF
Algorithmic problem sloving
PPTX
Pure functions and usage in Angular
PPTX
Introduction ,characteristics, properties,pseudo code conventions
PPTX
FPL -Part 2 ( Sem - I 2013)
ODP
Pure functions
PPTX
Apl
PDF
Basic of qbasic
PPTX
Phases of Compiler
PPTX
Algorithm and flowchart2010
PPTX
Guerrero rullan ppt
PDF
Lecture2 1 types of programming languages
PPT
Imperative and-functional-programming
Functions in c language1
Programming Sessions KU Leuven - Session 02
Valuable Information on Lexical Analysis in Compiler Design
Lecture 4
Flowcharts
Algorithmic problem sloving
Pure functions and usage in Angular
Introduction ,characteristics, properties,pseudo code conventions
FPL -Part 2 ( Sem - I 2013)
Pure functions
Apl
Basic of qbasic
Phases of Compiler
Algorithm and flowchart2010
Guerrero rullan ppt
Lecture2 1 types of programming languages
Imperative and-functional-programming
Ad

Similar to Functions and procedures (20)

PDF
Algorithm and Data Structure - Modular Programming
PPTX
Presentation of computer
PDF
Modular programming in qbasic
PPTX
L22- L23-Modular programmingpsucmit.pptx
PPTX
Subroutines igcses computer science powerpoint
PPTX
Chap6 procedures & macros
PPTX
C++ 2
PPTX
Functions
PPTX
Modular programming
PDF
Lec16-CS110 Computational Engineering
PDF
Unit iii vb_study_materials
DOC
Chapter 5 notes new
PPTX
PPT ON VHDL subprogram,package,alias,use,generate and concurrent statments an...
PDF
Function procedure c6 c7
PPT
15 functions
PPSX
Algorithms, Structure Charts, Corrective and adaptive.ppsx
DOCX
Functions assignment
DOC
Lab 9 sem ii_12_13
PDF
Functions
DOC
Chapter 6 notes
Algorithm and Data Structure - Modular Programming
Presentation of computer
Modular programming in qbasic
L22- L23-Modular programmingpsucmit.pptx
Subroutines igcses computer science powerpoint
Chap6 procedures & macros
C++ 2
Functions
Modular programming
Lec16-CS110 Computational Engineering
Unit iii vb_study_materials
Chapter 5 notes new
PPT ON VHDL subprogram,package,alias,use,generate and concurrent statments an...
Function procedure c6 c7
15 functions
Algorithms, Structure Charts, Corrective and adaptive.ppsx
Functions assignment
Lab 9 sem ii_12_13
Functions
Chapter 6 notes
Ad

Recently uploaded (20)

PDF
Digital Logic Computer Design lecture notes
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Welding lecture in detail for understanding
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Construction Project Organization Group 2.pptx
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Geodesy 1.pptx...............................................
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPT
Project quality management in manufacturing
DOCX
573137875-Attendance-Management-System-original
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Sustainable Sites - Green Building Construction
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Digital Logic Computer Design lecture notes
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Internet of Things (IOT) - A guide to understanding
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Welding lecture in detail for understanding
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Model Code of Practice - Construction Work - 21102022 .pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
Construction Project Organization Group 2.pptx
Mechanical Engineering MATERIALS Selection
Geodesy 1.pptx...............................................
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Project quality management in manufacturing
573137875-Attendance-Management-System-original
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Sustainable Sites - Green Building Construction
Mitigating Risks through Effective Management for Enhancing Organizational Pe...

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…