SlideShare a Scribd company logo
Algorithm and
Data Structure
Andi Nurkholis, S.Kom, M.Kom
Study Program of Informatics
Faculty of Engineering and Computer Science
SY. 2020-2021
March 22, 2021
2
3 Modular Programming
3
Modular Programming
Modular programming allows the program designer
to simplify problems within the program by breaking
down or dividing the problem into smaller sub-
problems in order to be easily solved
4
Illustration
5
Benefit of
Modular
Programming
1) Reduces development time
2) Improves reliability
3) Increases standardization of the
software development process
4) Simplifies modifications
6
Variable
Variable is a name that represents a data element. Variable is also
a temporary storage place for data in memory whose contents can
change
Variables consist of two types, namely local and global variable
7
Local Variable
Local variable is a variable declared in a function or procedure.
This variable can only be recognized within the function or
procedure itself. Local variables cannot be called, accessed and
changed by other procedures or functions, even by the main
program
8
Global Variable
Global variable is a variable that is defined in the main program
and can be used in the main program or other sub-programs. The
value of this variable can be called, accessed and changed by any
procedure or function contained in the program
9
What is Function?
Function is a subprogram that receives input data,
performs several processes, returns output values
for use by the process that calls the function
The function is also often called non-void functions.
Called non-void because it returns value that comes
from the output of the function
10
Characteristics
of Function
1) Have data type that starts the function
2) Don't have void keyword
3) Has a keyword return
4) Has a return value
Illustration
Penggunaan
fungsi
Pembuatan
fungsi
11
What is Procedure?
Procedure is a series of instructions named, and performs a
specific purpose. As with functions, procedures work with a call-
return mechanism
The procedure is also often referred to as void function. Called
void because the function does not return an output value
obtained from the results of the function's process
12
Characteristics
of Procedure
1) Does not have keyword return
2) Does not have a data type in the
function declaration
3) Use the void keyword
4) Cannot immediately display the results
5) Has no function return value
13
Illustration
Penggunaan
prosedur
Pembuatan
prosedur
14
What is Unit?
Unit is a library that is generally in the form of
procedures or functions
The difference between unit and preprocessor
directive is that the unit is a library developed by
user while directive preprocessor is a standard
library that has been provided by C
15
Illustration
Deklarasi unit File unit
Penggunaan
fungsi
Pembuatan
fungsi
16
Thank You, Next …
Stack
March 22, 2021
Andi Nurkholis, S.Kom, M.Kom
Study Program of Informatics
Faculty of Engineering and Computer Science
SY. 2020-2021

More Related Content

PPTX
Ak procedural vs oop
PPTX
Procedural programming
PPTX
SPoC: search-based pseudocode to code
PPSX
DISE - Programming Concepts
PPTX
URF Poster
PDF
MPI - 2
DOCX
Training 8051Report
PPTX
Parallel programming model
Ak procedural vs oop
Procedural programming
SPoC: search-based pseudocode to code
DISE - Programming Concepts
URF Poster
MPI - 2
Training 8051Report
Parallel programming model

What's hot (19)

PPTX
System programming vs application programming
PPTX
Parallel programming model
PPTX
Procedural vs. object oriented programming
PPT
Architecture presentation 4
PDF
Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...
PPT
procedures
PDF
C question
PPTX
Data Parallel and Object Oriented Model
PPTX
Compiler design
PDF
Compiler Design Quiz
PPT
PDF
ncaca2016
PDF
Linker and Loader Explained
DOC
Considered the brain of the computer gpu cpu/tutorialoutlet
PPT
Compiler design
PPTX
Common Runtime Language Features
PPTX
Phases of-compiler
PPTX
Phases of compiler
System programming vs application programming
Parallel programming model
Procedural vs. object oriented programming
Architecture presentation 4
Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...
procedures
C question
Data Parallel and Object Oriented Model
Compiler design
Compiler Design Quiz
ncaca2016
Linker and Loader Explained
Considered the brain of the computer gpu cpu/tutorialoutlet
Compiler design
Common Runtime Language Features
Phases of-compiler
Phases of compiler
Ad

Similar to Algorithm and Data Structure - Modular Programming (20)

PPTX
Function in c++
PDF
PSPC-UNIT-4.pdf
PPTX
Programming Methodologies Functions - C Language
PDF
Functions
PPT
FUNCTIONS IN c++ PPT
PPTX
Functions
PPTX
Function
PPTX
Function
PPTX
FUNCTION CPU
PPTX
Functions and procedures
PDF
FUNCTIONS IN C PROGRAMMING.pdf
PPTX
Unit 7. Functions
PPT
PDF
Functions-Computer programming
PPT
arrays.ppt
PPTX
Functions
PPT
Functions
DOCX
Introduction to c programming
PPT
PDF
Chapter 1. Functions in C++.pdf
Function in c++
PSPC-UNIT-4.pdf
Programming Methodologies Functions - C Language
Functions
FUNCTIONS IN c++ PPT
Functions
Function
Function
FUNCTION CPU
Functions and procedures
FUNCTIONS IN C PROGRAMMING.pdf
Unit 7. Functions
Functions-Computer programming
arrays.ppt
Functions
Functions
Introduction to c programming
Chapter 1. Functions in C++.pdf
Ad

More from AndiNurkholis1 (20)

PDF
Data Structure - 4 Pointer & Linked List
PDF
Data Structure - 3 Array: Concept & Implementation
PDF
Data Structure - 1 Learning Contract
PDF
Data Structure - 2 Introduction of Data Structure
PDF
Struktur Data - 4 Pointer & Linked List
PDF
Struktur Data - 3 Array: Konsep & Implementasi
PDF
Struktur Data - 2 Pengantar Struktur Data
PDF
Struktur Data - 1 Kontrak Perkuliahan
PDF
Technopreneurship - 9 Analisis Biaya dan Keuangan
PDF
Pengantar Bisnis - 14 Manajemen Keuangan
PDF
Pengantar Bisnis - 13 Manajemen Operasi
PDF
Pengantar Bisnis - 12 Kebijakan Harga
PDF
Pengantar Bisnis - 11 Kebijakan Distribusi
PDF
Technopreneurship - 8 Manajemen Sumber Daya Manusia
PDF
Pengantar Bisnis - 10 Kebijakan Produk
PDF
Technopreneurship - 7 Manajemen Pemasaran dan Operasional Bisnis
PDF
Pengantar Bisnis - 9 Manajemen Pemasaran
PDF
Technopreneurship - 6 Business Plan
PDF
Pengantar Bisnis - 8 Kepemimpinan
PDF
Technopreneurship - 5 Model Bisnis
Data Structure - 4 Pointer & Linked List
Data Structure - 3 Array: Concept & Implementation
Data Structure - 1 Learning Contract
Data Structure - 2 Introduction of Data Structure
Struktur Data - 4 Pointer & Linked List
Struktur Data - 3 Array: Konsep & Implementasi
Struktur Data - 2 Pengantar Struktur Data
Struktur Data - 1 Kontrak Perkuliahan
Technopreneurship - 9 Analisis Biaya dan Keuangan
Pengantar Bisnis - 14 Manajemen Keuangan
Pengantar Bisnis - 13 Manajemen Operasi
Pengantar Bisnis - 12 Kebijakan Harga
Pengantar Bisnis - 11 Kebijakan Distribusi
Technopreneurship - 8 Manajemen Sumber Daya Manusia
Pengantar Bisnis - 10 Kebijakan Produk
Technopreneurship - 7 Manajemen Pemasaran dan Operasional Bisnis
Pengantar Bisnis - 9 Manajemen Pemasaran
Technopreneurship - 6 Business Plan
Pengantar Bisnis - 8 Kepemimpinan
Technopreneurship - 5 Model Bisnis

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
cuic standard and advanced reporting.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Approach and Philosophy of On baking technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Cloud computing and distributed systems.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Empathic Computing: Creating Shared Understanding
Spectral efficient network and resource selection model in 5G networks
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Review of recent advances in non-invasive hemoglobin estimation
Machine learning based COVID-19 study performance prediction
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
cuic standard and advanced reporting.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
NewMind AI Weekly Chronicles - August'25 Week I
Cloud computing and distributed systems.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectroscopy.pptx food analysis technology
Digital-Transformation-Roadmap-for-Companies.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
20250228 LYD VKU AI Blended-Learning.pptx
Empathic Computing: Creating Shared Understanding

Algorithm and Data Structure - Modular Programming

  • 1. Algorithm and Data Structure Andi Nurkholis, S.Kom, M.Kom Study Program of Informatics Faculty of Engineering and Computer Science SY. 2020-2021 March 22, 2021
  • 3. 3 Modular Programming Modular programming allows the program designer to simplify problems within the program by breaking down or dividing the problem into smaller sub- problems in order to be easily solved
  • 5. 5 Benefit of Modular Programming 1) Reduces development time 2) Improves reliability 3) Increases standardization of the software development process 4) Simplifies modifications
  • 6. 6 Variable Variable is a name that represents a data element. Variable is also a temporary storage place for data in memory whose contents can change Variables consist of two types, namely local and global variable
  • 7. 7 Local Variable Local variable is a variable declared in a function or procedure. This variable can only be recognized within the function or procedure itself. Local variables cannot be called, accessed and changed by other procedures or functions, even by the main program
  • 8. 8 Global Variable Global variable is a variable that is defined in the main program and can be used in the main program or other sub-programs. The value of this variable can be called, accessed and changed by any procedure or function contained in the program
  • 9. 9 What is Function? Function is a subprogram that receives input data, performs several processes, returns output values for use by the process that calls the function The function is also often called non-void functions. Called non-void because it returns value that comes from the output of the function
  • 10. 10 Characteristics of Function 1) Have data type that starts the function 2) Don't have void keyword 3) Has a keyword return 4) Has a return value
  • 12. What is Procedure? Procedure is a series of instructions named, and performs a specific purpose. As with functions, procedures work with a call- return mechanism The procedure is also often referred to as void function. Called void because the function does not return an output value obtained from the results of the function's process 12
  • 13. Characteristics of Procedure 1) Does not have keyword return 2) Does not have a data type in the function declaration 3) Use the void keyword 4) Cannot immediately display the results 5) Has no function return value 13
  • 15. What is Unit? Unit is a library that is generally in the form of procedures or functions The difference between unit and preprocessor directive is that the unit is a library developed by user while directive preprocessor is a standard library that has been provided by C 15
  • 16. Illustration Deklarasi unit File unit Penggunaan fungsi Pembuatan fungsi 16
  • 17. Thank You, Next … Stack March 22, 2021 Andi Nurkholis, S.Kom, M.Kom Study Program of Informatics Faculty of Engineering and Computer Science SY. 2020-2021