SlideShare a Scribd company logo
DFC1023
PROBLEM SOLVING & PROGRAM DESIGN
CHAPTER 2:
PROBLEM SOLVING METHODS
S U B TO P I C 2 . 2 : P R O G R A M M I N G L I F E
C YC L E ( P LC )
AT THE END OF THIS CHAPTER, STUDENTS
SHOULD BE ABLE TO:
Understand Problem solving concept
 Explain the phases in Programming Life Cycle
a. Specify the problem
b. Analyze the problem
c. Design the algorithm to solve the problem
d. Implement the algorithm
e. Test and verify the completed program
f. Maintain and update the program
g. Documentation
PROGRAMMING LIFE CYCLE
Programming Life Cycle:
A framework or discipline, which uses certain
techniques needed in computer programming
development.
Life Cycle:
Refers to the changes made from an
old to a new program (the cycle starts again).
PHASES IN PROGRAMMING LIFE CYCLE
SPECIFY THE
PROBLEM
ANALYZE THE
PROBLEM
DESIGN THE
ALGORITHM
IMPLEMENT
THE ALGORITHM
TEST AND
VERIFY
MAINTAIN AND
UPDATE THE
PROGRAM
DOCUMENTATION
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 1 – SPECIFY THE PROBLEM
• studies the problem.
• investigate the need for possible software automation in the given
system.
• specific recommendations for the problem.
Purposes:
 to find the need and
 to define the problem that needs to be solved.
 identify the operators and
 formula need to be used
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 2: ANALYZE THE PROBLEM
Purpose:
To describe in detail a solution to a problem and
information needed in solving the problem.
How?
Study and understand the problem.
Identify:
The needed input.
The required output.
The needed process. For example: scientific formula
or particular theories.
PHASE 2: ANALYZE THE PROBLEM
In most cases, the solution requires more than one program.
The analyze requirement step consist of three major task :
1. Review requirement – chart, diagram and report.
2. Meet with system analyst and user – enables the programmer to
understand the purpose of requirement from the user perspective.
3. Identify input, process, output and data component. – use IPO chart.
Programmer review the content of IPO Chart with system analyst and
user. This allows programmers to be sure they completely understand
the purpose of the program.
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 3: DESIGN THE ALGORITHM
Definition:
It is a framework or flow that shows the steps in
problem solving.
Methods to design a program:
1. Algorithm
2. Flowchart
3. Pseudo code
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 3: DESIGN THE ALGORITHM
1. Algorithm
• Algorithm is a sequence of instructions to solve a
problem, written in human language, and it can solve
any problems when it is used with the correct
procedure.
• Example:
1. Get Input 3 numbers
2. Total up the 3 numbers using formula:
Total = number1 + number2 + number3
3. Calculate average 3 number using formula;
Average = (number1 + number2 + number3)/3
4. Display Total, Average
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 3: DESIGN THE ALGORITHM
2. Flowchart
 A graphical representation of data, information and
workflow using certain symbols that are connected to
flow lines to describe the instructions done in problem
solving.
 It shows the flow of the process from the start to the
end of the problem solving.
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 3: DESIGN THE ALGORITHM
2. Flowchart
Basic
Flowchart
symbol:
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 3: DESIGN THE ALGORITHM
3. Pseudo code
 Steps in problem solving that is written half in
programming code and half in human language.
 Example:
START
Input number1, number2, number3;
Total = number1 + number2 + number3;
Average = (number1 + number2 + number3)/3
Display Total, Average;
END
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 4: IMPLEMENT THE ALGORITHM
Definition: Writing problem solving into certain programming language such as C,
COBOL and others.
Problem solving: Instructions before it is coded into programming language.
Purpose: To produce a program to develop a system
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 4: IMPLEMENT THE ALGORITHM
o Example:
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 5: TEST AND VERIFY THE PROGRAM
o Testing: Using a set of data to discover errors and
to ensure accuracy of the program.
o Diagram indicates the process of testing:
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 5: TEST AND VERIFY THE PROGRAM
 Debug: Debugging is a process of identifying and
correcting error.
o Three types of error:
oSyntax error (grammatical error)
oRuntime error
oLogic error
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 5: TEST AND VERIFY THE PROGRAM
1. Syntax error (grammatical error)
 Occurs when the rules of programming language are not
applied.
 Correction is done during the program coding.
 The bug can be traced during the compilation.
 Also known as compile-time error.
 Must be corrected before executing and testing the program.
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 5: TEST AND VERIFY THE PROGRAM
2. Run time error
 Occur when a program with no syntax error asks the computer to do something that
the computer is unable to reliably do.
 Example:
 trying to divide by a variable that contains a value zero
 trying to open a file that does not exists
3. Logic error
 Cannot be traced by compiler.
 Corrected during the problem solving process.
 Example output for average is 4, but when it runs, the output is 2.
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 6: MAINTAIN AND UPDATE THE PROGRAM
Activity that verifies whether the operational system is performing as planned or an
activity to modify the system to meet the current requirement.
The process of changing a system after it has been applied to maintain its ability. The
changes may involve simple changes such as error correcting.
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 6: MAINTAIN AND UPDATE THE PROGRAM
How to maintenance?
 Testing – Test the ability of the system.
 Measurement – Access data time. Example, time to save, print and others.
 Replacement – Replace the old system to new system.
 Adjustment – Adding needs to new system.
 Repair – For example: An old system cannot update the new data
 Updating – Update the database.
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 7: DOCUMENTATION
 Definition:
A written or graphical report of the steps taken
during the development of a program.
 Purpose:
It will be useful in the future, in case of
modification or maintenance.
PHASES IN PROGRAMMING LIFE CYCLE
PHASE 7: DOCUMENTATION
Content of documentation:
 Description of the program.
 Specification of program requirement
 Program design such as pseudo code and flowchart
 List of program and comments (to explain about the program).
 Test results.
 User’s manual book.
 Program capabilities and limitation.

More Related Content

What's hot

penyelenggaraan
penyelenggaraan penyelenggaraan
penyelenggaraan
Jius Musz
 
BAB 3 Perisian Aplikasi
BAB 3   Perisian AplikasiBAB 3   Perisian Aplikasi
BAB 3 Perisian Aplikasi
Nur Salsabila Edu
 
Pengenalan Perisian Komputer
Pengenalan Perisian KomputerPengenalan Perisian Komputer
Pengenalan Perisian Komputer
Yusrinaldiibrahim
 
Jenis & fungsi sensor
Jenis & fungsi sensorJenis & fungsi sensor
Jenis & fungsi sensorjuan_fjfn
 
Kertas kerja c++
Kertas kerja c++Kertas kerja c++
Kertas kerja c++
muhammad sofi
 
Rangkaian komputer dan internet
Rangkaian komputer dan internetRangkaian komputer dan internet
Rangkaian komputer dan internet
fazihafid
 
T03 CA04 – ETIKA DI TEMPAT KERJA.pptx
T03 CA04 – ETIKA DI TEMPAT KERJA.pptxT03 CA04 – ETIKA DI TEMPAT KERJA.pptx
T03 CA04 – ETIKA DI TEMPAT KERJA.pptx
Nur Farizan Ayoob
 
sistem unit, cpu & ingatan
sistem unit, cpu & ingatansistem unit, cpu & ingatan
sistem unit, cpu & ingatan
ictpermas
 
Angkup vernier
Angkup vernierAngkup vernier
Angkup vernierAida Nur
 
BAB 4 Perisian operasi
BAB 4   Perisian operasiBAB 4   Perisian operasi
BAB 4 Perisian operasi
Nur Salsabila Edu
 
Kertas penerangan peralatan tangan
Kertas penerangan  peralatan tanganKertas penerangan  peralatan tangan
Kertas penerangan peralatan tangan
suhaimiawe12
 
Get logik
Get logikGet logik
Get logik
Helmi Hashim
 
KOMUNIKASI BERKESAN UNTUK PELAJAR KOLEJ KOMUNITI LEDANG
KOMUNIKASI BERKESAN UNTUK PELAJAR KOLEJ KOMUNITI LEDANGKOMUNIKASI BERKESAN UNTUK PELAJAR KOLEJ KOMUNITI LEDANG
KOMUNIKASI BERKESAN UNTUK PELAJAR KOLEJ KOMUNITI LEDANG
ladyashikin
 
Amalan solat fardhu di kalangan pelajar pismp semester 3
Amalan solat fardhu di kalangan pelajar pismp semester 3Amalan solat fardhu di kalangan pelajar pismp semester 3
Amalan solat fardhu di kalangan pelajar pismp semester 3
Nazmi Lestari
 
Faktor Utama Ketidakhadiran Kakitangan dan Strategi Kreatif untuk Mengurangka...
Faktor Utama Ketidakhadiran Kakitangan dan Strategi Kreatif untuk Mengurangka...Faktor Utama Ketidakhadiran Kakitangan dan Strategi Kreatif untuk Mengurangka...
Faktor Utama Ketidakhadiran Kakitangan dan Strategi Kreatif untuk Mengurangka...
Fara Megat
 
KOMUNIKASI DAN INTERAKSI SOSIAL Membina hubungan
KOMUNIKASI DAN INTERAKSI SOSIAL Membina hubunganKOMUNIKASI DAN INTERAKSI SOSIAL Membina hubungan
KOMUNIKASI DAN INTERAKSI SOSIAL Membina hubungan
Amin Upsi
 
Slides angkup vernier
Slides angkup vernierSlides angkup vernier
Slides angkup vernier
hannaleyanna
 
Bekalan kuasa
Bekalan kuasaBekalan kuasa
Bekalan kuasa
KEN KEN
 
T3 ca06 kertas penerangan
T3 ca06 kertas peneranganT3 ca06 kertas penerangan
T3 ca06 kertas penerangan
nurfarizanayoob1
 

What's hot (20)

penyelenggaraan
penyelenggaraan penyelenggaraan
penyelenggaraan
 
BAB 3 Perisian Aplikasi
BAB 3   Perisian AplikasiBAB 3   Perisian Aplikasi
BAB 3 Perisian Aplikasi
 
Pengenalan Perisian Komputer
Pengenalan Perisian KomputerPengenalan Perisian Komputer
Pengenalan Perisian Komputer
 
Jenis & fungsi sensor
Jenis & fungsi sensorJenis & fungsi sensor
Jenis & fungsi sensor
 
Kertas kerja c++
Kertas kerja c++Kertas kerja c++
Kertas kerja c++
 
Rangkaian komputer dan internet
Rangkaian komputer dan internetRangkaian komputer dan internet
Rangkaian komputer dan internet
 
T03 CA04 – ETIKA DI TEMPAT KERJA.pptx
T03 CA04 – ETIKA DI TEMPAT KERJA.pptxT03 CA04 – ETIKA DI TEMPAT KERJA.pptx
T03 CA04 – ETIKA DI TEMPAT KERJA.pptx
 
sistem unit, cpu & ingatan
sistem unit, cpu & ingatansistem unit, cpu & ingatan
sistem unit, cpu & ingatan
 
Angkup vernier
Angkup vernierAngkup vernier
Angkup vernier
 
BAB 4 Perisian operasi
BAB 4   Perisian operasiBAB 4   Perisian operasi
BAB 4 Perisian operasi
 
Kertas penerangan peralatan tangan
Kertas penerangan  peralatan tanganKertas penerangan  peralatan tangan
Kertas penerangan peralatan tangan
 
Get logik
Get logikGet logik
Get logik
 
KOMUNIKASI BERKESAN UNTUK PELAJAR KOLEJ KOMUNITI LEDANG
KOMUNIKASI BERKESAN UNTUK PELAJAR KOLEJ KOMUNITI LEDANGKOMUNIKASI BERKESAN UNTUK PELAJAR KOLEJ KOMUNITI LEDANG
KOMUNIKASI BERKESAN UNTUK PELAJAR KOLEJ KOMUNITI LEDANG
 
Amalan solat fardhu di kalangan pelajar pismp semester 3
Amalan solat fardhu di kalangan pelajar pismp semester 3Amalan solat fardhu di kalangan pelajar pismp semester 3
Amalan solat fardhu di kalangan pelajar pismp semester 3
 
Faktor Utama Ketidakhadiran Kakitangan dan Strategi Kreatif untuk Mengurangka...
Faktor Utama Ketidakhadiran Kakitangan dan Strategi Kreatif untuk Mengurangka...Faktor Utama Ketidakhadiran Kakitangan dan Strategi Kreatif untuk Mengurangka...
Faktor Utama Ketidakhadiran Kakitangan dan Strategi Kreatif untuk Mengurangka...
 
KOMUNIKASI DAN INTERAKSI SOSIAL Membina hubungan
KOMUNIKASI DAN INTERAKSI SOSIAL Membina hubunganKOMUNIKASI DAN INTERAKSI SOSIAL Membina hubungan
KOMUNIKASI DAN INTERAKSI SOSIAL Membina hubungan
 
Perisian komputer
Perisian komputerPerisian komputer
Perisian komputer
 
Slides angkup vernier
Slides angkup vernierSlides angkup vernier
Slides angkup vernier
 
Bekalan kuasa
Bekalan kuasaBekalan kuasa
Bekalan kuasa
 
T3 ca06 kertas penerangan
T3 ca06 kertas peneranganT3 ca06 kertas penerangan
T3 ca06 kertas penerangan
 

Similar to POLITEKNIK MALAYSIA

GE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdfGE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdf
Asst.prof M.Gokilavani
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
Prof. Dr. K. Adisesha
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
umardanjumamaiwada
 
lecture 5
 lecture 5 lecture 5
lecture 5
umardanjumamaiwada
 
Unit 1 python (2021 r)
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)
praveena p
 
Programming_Lecture_1.pptx
Programming_Lecture_1.pptxProgramming_Lecture_1.pptx
Programming_Lecture_1.pptx
shoaibkhan716300
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer ProgrammingProf. Erwin Globio
 
Software develop....
Software develop.... Software develop....
Software develop....
GCWUS
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
AnuragJoshi813963
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to C
Prabu U
 
SYSTEM DEVELOPMENTS LIFE CYCLE BSC I 2018
SYSTEM DEVELOPMENTS LIFE CYCLE BSC I 2018SYSTEM DEVELOPMENTS LIFE CYCLE BSC I 2018
SYSTEM DEVELOPMENTS LIFE CYCLE BSC I 2018
Rai Saheb Bhanwar Singh College Nasrullaganj
 
Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)
TejaswiB4
 
Grade 10 program development cycle
Grade 10   program development cycleGrade 10   program development cycle
Grade 10 program development cycle
Rafael Balderosa
 
Software Development
Software DevelopmentSoftware Development
Software Development
Nicole Ynne Estabillo
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
DivyaKS12
 
Programming Theory
Programming TheoryProgramming Theory
Programming Theoryiarthur
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
Appili Vamsi Krishna
 
Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6ashhadiqbal
 
Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6
helpido6
 
ECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/SnaptutorialECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/Snaptutorial
pinck2380
 

Similar to POLITEKNIK MALAYSIA (20)

GE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdfGE3151 PSPP _Unit 1 notes and Question bank.pdf
GE3151 PSPP _Unit 1 notes and Question bank.pdf
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
Unit 1 python (2021 r)
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)
 
Programming_Lecture_1.pptx
Programming_Lecture_1.pptxProgramming_Lecture_1.pptx
Programming_Lecture_1.pptx
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Software develop....
Software develop.... Software develop....
Software develop....
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to C
 
SYSTEM DEVELOPMENTS LIFE CYCLE BSC I 2018
SYSTEM DEVELOPMENTS LIFE CYCLE BSC I 2018SYSTEM DEVELOPMENTS LIFE CYCLE BSC I 2018
SYSTEM DEVELOPMENTS LIFE CYCLE BSC I 2018
 
Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)
 
Grade 10 program development cycle
Grade 10   program development cycleGrade 10   program development cycle
Grade 10 program development cycle
 
Software Development
Software DevelopmentSoftware Development
Software Development
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
 
Programming Theory
Programming TheoryProgramming Theory
Programming Theory
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
 
Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6Cis 355 ilab 1 of 6
Cis 355 ilab 1 of 6
 
Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6Cis 355 i lab 1 of 6
Cis 355 i lab 1 of 6
 
ECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/SnaptutorialECET 360 help A Guide to career/Snaptutorial
ECET 360 help A Guide to career/Snaptutorial
 

More from Aiman Hud

POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 

More from Aiman Hud (20)

POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 

Recently uploaded

AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 

Recently uploaded (20)

AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 

POLITEKNIK MALAYSIA

  • 1. DFC1023 PROBLEM SOLVING & PROGRAM DESIGN CHAPTER 2: PROBLEM SOLVING METHODS S U B TO P I C 2 . 2 : P R O G R A M M I N G L I F E C YC L E ( P LC )
  • 2. AT THE END OF THIS CHAPTER, STUDENTS SHOULD BE ABLE TO: Understand Problem solving concept  Explain the phases in Programming Life Cycle a. Specify the problem b. Analyze the problem c. Design the algorithm to solve the problem d. Implement the algorithm e. Test and verify the completed program f. Maintain and update the program g. Documentation
  • 3. PROGRAMMING LIFE CYCLE Programming Life Cycle: A framework or discipline, which uses certain techniques needed in computer programming development. Life Cycle: Refers to the changes made from an old to a new program (the cycle starts again).
  • 4. PHASES IN PROGRAMMING LIFE CYCLE SPECIFY THE PROBLEM ANALYZE THE PROBLEM DESIGN THE ALGORITHM IMPLEMENT THE ALGORITHM TEST AND VERIFY MAINTAIN AND UPDATE THE PROGRAM DOCUMENTATION
  • 5. PHASES IN PROGRAMMING LIFE CYCLE PHASE 1 – SPECIFY THE PROBLEM • studies the problem. • investigate the need for possible software automation in the given system. • specific recommendations for the problem. Purposes:  to find the need and  to define the problem that needs to be solved.  identify the operators and  formula need to be used
  • 6. PHASES IN PROGRAMMING LIFE CYCLE PHASE 2: ANALYZE THE PROBLEM Purpose: To describe in detail a solution to a problem and information needed in solving the problem. How? Study and understand the problem. Identify: The needed input. The required output. The needed process. For example: scientific formula or particular theories.
  • 7. PHASE 2: ANALYZE THE PROBLEM In most cases, the solution requires more than one program. The analyze requirement step consist of three major task : 1. Review requirement – chart, diagram and report. 2. Meet with system analyst and user – enables the programmer to understand the purpose of requirement from the user perspective. 3. Identify input, process, output and data component. – use IPO chart. Programmer review the content of IPO Chart with system analyst and user. This allows programmers to be sure they completely understand the purpose of the program.
  • 8. PHASES IN PROGRAMMING LIFE CYCLE PHASE 3: DESIGN THE ALGORITHM Definition: It is a framework or flow that shows the steps in problem solving. Methods to design a program: 1. Algorithm 2. Flowchart 3. Pseudo code
  • 9. PHASES IN PROGRAMMING LIFE CYCLE PHASE 3: DESIGN THE ALGORITHM 1. Algorithm • Algorithm is a sequence of instructions to solve a problem, written in human language, and it can solve any problems when it is used with the correct procedure. • Example: 1. Get Input 3 numbers 2. Total up the 3 numbers using formula: Total = number1 + number2 + number3 3. Calculate average 3 number using formula; Average = (number1 + number2 + number3)/3 4. Display Total, Average
  • 10. PHASES IN PROGRAMMING LIFE CYCLE PHASE 3: DESIGN THE ALGORITHM 2. Flowchart  A graphical representation of data, information and workflow using certain symbols that are connected to flow lines to describe the instructions done in problem solving.  It shows the flow of the process from the start to the end of the problem solving.
  • 11. PHASES IN PROGRAMMING LIFE CYCLE PHASE 3: DESIGN THE ALGORITHM 2. Flowchart Basic Flowchart symbol:
  • 12. PHASES IN PROGRAMMING LIFE CYCLE PHASE 3: DESIGN THE ALGORITHM 3. Pseudo code  Steps in problem solving that is written half in programming code and half in human language.  Example: START Input number1, number2, number3; Total = number1 + number2 + number3; Average = (number1 + number2 + number3)/3 Display Total, Average; END
  • 13. PHASES IN PROGRAMMING LIFE CYCLE PHASE 4: IMPLEMENT THE ALGORITHM Definition: Writing problem solving into certain programming language such as C, COBOL and others. Problem solving: Instructions before it is coded into programming language. Purpose: To produce a program to develop a system
  • 14. PHASES IN PROGRAMMING LIFE CYCLE PHASE 4: IMPLEMENT THE ALGORITHM o Example:
  • 15. PHASES IN PROGRAMMING LIFE CYCLE PHASE 5: TEST AND VERIFY THE PROGRAM o Testing: Using a set of data to discover errors and to ensure accuracy of the program. o Diagram indicates the process of testing:
  • 16. PHASES IN PROGRAMMING LIFE CYCLE PHASE 5: TEST AND VERIFY THE PROGRAM  Debug: Debugging is a process of identifying and correcting error. o Three types of error: oSyntax error (grammatical error) oRuntime error oLogic error
  • 17. PHASES IN PROGRAMMING LIFE CYCLE PHASE 5: TEST AND VERIFY THE PROGRAM 1. Syntax error (grammatical error)  Occurs when the rules of programming language are not applied.  Correction is done during the program coding.  The bug can be traced during the compilation.  Also known as compile-time error.  Must be corrected before executing and testing the program.
  • 18. PHASES IN PROGRAMMING LIFE CYCLE PHASE 5: TEST AND VERIFY THE PROGRAM 2. Run time error  Occur when a program with no syntax error asks the computer to do something that the computer is unable to reliably do.  Example:  trying to divide by a variable that contains a value zero  trying to open a file that does not exists 3. Logic error  Cannot be traced by compiler.  Corrected during the problem solving process.  Example output for average is 4, but when it runs, the output is 2.
  • 19. PHASES IN PROGRAMMING LIFE CYCLE PHASE 6: MAINTAIN AND UPDATE THE PROGRAM Activity that verifies whether the operational system is performing as planned or an activity to modify the system to meet the current requirement. The process of changing a system after it has been applied to maintain its ability. The changes may involve simple changes such as error correcting.
  • 20. PHASES IN PROGRAMMING LIFE CYCLE PHASE 6: MAINTAIN AND UPDATE THE PROGRAM How to maintenance?  Testing – Test the ability of the system.  Measurement – Access data time. Example, time to save, print and others.  Replacement – Replace the old system to new system.  Adjustment – Adding needs to new system.  Repair – For example: An old system cannot update the new data  Updating – Update the database.
  • 21. PHASES IN PROGRAMMING LIFE CYCLE PHASE 7: DOCUMENTATION  Definition: A written or graphical report of the steps taken during the development of a program.  Purpose: It will be useful in the future, in case of modification or maintenance.
  • 22. PHASES IN PROGRAMMING LIFE CYCLE PHASE 7: DOCUMENTATION Content of documentation:  Description of the program.  Specification of program requirement  Program design such as pseudo code and flowchart  List of program and comments (to explain about the program).  Test results.  User’s manual book.  Program capabilities and limitation.