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

What's hot (19)

PPTX
System programming vs application programming
Inderbir Kaur Sandhu
 
PPTX
Parallel programming model
easy notes
 
PPTX
Procedural vs. object oriented programming
Haris Bin Zahid
 
PPT
Architecture presentation 4
Anoushiravan M. Ghamsari
 
PDF
Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...
iosrjce
 
PPT
procedures
Rajendran
 
PDF
C question
Kuntal Bhowmick
 
PPTX
Data Parallel and Object Oriented Model
Nikhil Sharma
 
PPTX
Compiler design
nazmul hoque
 
PDF
Compiler Design Quiz
Satyam Jaiswal
 
PPT
Compiler
IGZ Software house
 
PDF
ncaca2016
Sushant Kumar
 
PDF
Linker and Loader Explained
Adarsh Kr Sinha
 
DOC
Considered the brain of the computer gpu cpu/tutorialoutlet
Danielsonz
 
PPT
Compiler design
suganyasanjai
 
PPTX
Common Runtime Language Features
Perry Hunchak
 
PPTX
Phases of-compiler
Zahidul Islam Razu
 
PPTX
Phases of compiler
Akhil Kaushik
 
System programming vs application programming
Inderbir Kaur Sandhu
 
Parallel programming model
easy notes
 
Procedural vs. object oriented programming
Haris Bin Zahid
 
Architecture presentation 4
Anoushiravan M. Ghamsari
 
Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...
iosrjce
 
procedures
Rajendran
 
C question
Kuntal Bhowmick
 
Data Parallel and Object Oriented Model
Nikhil Sharma
 
Compiler design
nazmul hoque
 
Compiler Design Quiz
Satyam Jaiswal
 
ncaca2016
Sushant Kumar
 
Linker and Loader Explained
Adarsh Kr Sinha
 
Considered the brain of the computer gpu cpu/tutorialoutlet
Danielsonz
 
Compiler design
suganyasanjai
 
Common Runtime Language Features
Perry Hunchak
 
Phases of-compiler
Zahidul Islam Razu
 
Phases of compiler
Akhil Kaushik
 

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

PPTX
Function in c++
Kumar
 
PDF
PSPC-UNIT-4.pdf
ArshiniGubbala3
 
PPTX
Programming Methodologies Functions - C Language
ChobodiDamsaraniPadm
 
PDF
Functions
Learn By Watch
 
PPT
FUNCTIONS IN c++ PPT
03062679929
 
PPTX
Functions
Septi Ratnasari
 
PPTX
Function
Saniati
 
PPTX
Function
rishabh agrawal
 
PPTX
FUNCTION CPU
Krushal Kakadia
 
PPTX
Functions and procedures
underwan
 
PDF
FUNCTIONS IN C PROGRAMMING.pdf
RITHIKA R S
 
PPTX
Unit 7. Functions
Ashim Lamichhane
 
PPT
Basic c++
Maria Stella Solon
 
PDF
Functions-Computer programming
nmahi96
 
PPT
arrays.ppt
Bharath904863
 
PPTX
Functions
Jesmin Akhter
 
PPT
Functions
Online
 
DOCX
Introduction to c programming
AMAN ANAND
 
PPT
Modular programming
Mohanlal Sukhadia University (MLSU)
 
PDF
Chapter_1.__Functions_in_C++[1].pdf
TeshaleSiyum
 
Function in c++
Kumar
 
PSPC-UNIT-4.pdf
ArshiniGubbala3
 
Programming Methodologies Functions - C Language
ChobodiDamsaraniPadm
 
Functions
Learn By Watch
 
FUNCTIONS IN c++ PPT
03062679929
 
Functions
Septi Ratnasari
 
Function
Saniati
 
Function
rishabh agrawal
 
FUNCTION CPU
Krushal Kakadia
 
Functions and procedures
underwan
 
FUNCTIONS IN C PROGRAMMING.pdf
RITHIKA R S
 
Unit 7. Functions
Ashim Lamichhane
 
Functions-Computer programming
nmahi96
 
arrays.ppt
Bharath904863
 
Functions
Jesmin Akhter
 
Functions
Online
 
Introduction to c programming
AMAN ANAND
 
Chapter_1.__Functions_in_C++[1].pdf
TeshaleSiyum
 
Ad

More from AndiNurkholis1 (20)

PDF
Technopreneurship - 9 Analisis Biaya dan Keuangan
AndiNurkholis1
 
PDF
Pengantar Bisnis - 14 Manajemen Keuangan
AndiNurkholis1
 
PDF
Pengantar Bisnis - 13 Manajemen Operasi
AndiNurkholis1
 
PDF
Pengantar Bisnis - 12 Kebijakan Harga
AndiNurkholis1
 
PDF
Pengantar Bisnis - 11 Kebijakan Distribusi
AndiNurkholis1
 
PDF
Technopreneurship - 8 Manajemen Sumber Daya Manusia
AndiNurkholis1
 
PDF
Pengantar Bisnis - 10 Kebijakan Produk
AndiNurkholis1
 
PDF
Technopreneurship - 7 Manajemen Pemasaran dan Operasional Bisnis
AndiNurkholis1
 
PDF
Pengantar Bisnis - 9 Manajemen Pemasaran
AndiNurkholis1
 
PDF
Technopreneurship - 6 Business Plan
AndiNurkholis1
 
PDF
Pengantar Bisnis - 8 Kepemimpinan
AndiNurkholis1
 
PDF
Technopreneurship - 5 Model Bisnis
AndiNurkholis1
 
PDF
Technopreneurship - 4 Studi Kelayakan Usaha
AndiNurkholis1
 
PDF
Pengantar Bisnis - 7 Motivasi Kerja
AndiNurkholis1
 
PDF
Pengantar Bisnis - 6 Manajemen Sumber Daya Manusia
AndiNurkholis1
 
PDF
Pengantar Bisnis - 5 Pengelolaan & Pengorganisasian Bisnis
AndiNurkholis1
 
PDF
Technopreneurship - 3 Ide dan Prinsip Bisnis
AndiNurkholis1
 
PDF
Pengantar Bisnis - 4 Bentuk Organisasi Bisnis
AndiNurkholis1
 
PDF
Technopreneurship - 2 Pengantar Technopreneurship
AndiNurkholis1
 
PDF
Pengantar Bisnis - 3 Globalisasi Ekonomi & Bisnis Internasional
AndiNurkholis1
 
Technopreneurship - 9 Analisis Biaya dan Keuangan
AndiNurkholis1
 
Pengantar Bisnis - 14 Manajemen Keuangan
AndiNurkholis1
 
Pengantar Bisnis - 13 Manajemen Operasi
AndiNurkholis1
 
Pengantar Bisnis - 12 Kebijakan Harga
AndiNurkholis1
 
Pengantar Bisnis - 11 Kebijakan Distribusi
AndiNurkholis1
 
Technopreneurship - 8 Manajemen Sumber Daya Manusia
AndiNurkholis1
 
Pengantar Bisnis - 10 Kebijakan Produk
AndiNurkholis1
 
Technopreneurship - 7 Manajemen Pemasaran dan Operasional Bisnis
AndiNurkholis1
 
Pengantar Bisnis - 9 Manajemen Pemasaran
AndiNurkholis1
 
Technopreneurship - 6 Business Plan
AndiNurkholis1
 
Pengantar Bisnis - 8 Kepemimpinan
AndiNurkholis1
 
Technopreneurship - 5 Model Bisnis
AndiNurkholis1
 
Technopreneurship - 4 Studi Kelayakan Usaha
AndiNurkholis1
 
Pengantar Bisnis - 7 Motivasi Kerja
AndiNurkholis1
 
Pengantar Bisnis - 6 Manajemen Sumber Daya Manusia
AndiNurkholis1
 
Pengantar Bisnis - 5 Pengelolaan & Pengorganisasian Bisnis
AndiNurkholis1
 
Technopreneurship - 3 Ide dan Prinsip Bisnis
AndiNurkholis1
 
Pengantar Bisnis - 4 Bentuk Organisasi Bisnis
AndiNurkholis1
 
Technopreneurship - 2 Pengantar Technopreneurship
AndiNurkholis1
 
Pengantar Bisnis - 3 Globalisasi Ekonomi & Bisnis Internasional
AndiNurkholis1
 
Ad

Recently uploaded (20)

PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Français Patch Tuesday - Juillet
Ivanti
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 

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