Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

COMPUTER PROGRAMMING 2

Program Development Life Cycle


PRESENTED BY:
Jhaun Paul G. Enriquez
SHS ICT Faculty
1
LEARNING OUTCOMES:

1. Identify the steps that will guide a programmer in


developing a program.
2. Describe activities involved in each step of the Program
Development Life Cycle (PDLC).
3. Apply the PDLC in a real-life project development.

COMPUTER PRORAMMING 2 2
PROGRAM DEVELOPMENT LIFE CYCLE
• A systematic way of organizing and developing quality
program or software.
• Provides an organized plan for breaking down the task of
program development into manageable chunks.
• Unbroken steps of defining, coding, compiling, executing,
and fine-tuning the program until it is free from all errors
and generates the expected output.

COMPUTER PRORAMMING 2 3
PROGRAM
CODING

PROGRAM DESIGN PROBLEM ANALYSIS

MAINTENANCE IMPLEMENTATION

TESTING & DEBUGGING

COMPUTER PRORAMMING 2 4
STEP 1 PROBLEM ANALYSIS
• Define and analyze the problem
• Identify program specification
• Data used in the program
• Process to find the solution
• Format output and User Interface

INPUT PROCESS OUTPUT

COMPUTER PRORAMMING 2 5
STEP 1 PROBLEM ANALYSIS
• Example:
• Write a program that will calculate the employee’s pay
based on the rate and work hours.

INPUT PROCESS OUTPUT

1. Rate
2. Hours Rate x Hours Pay

COMPUTER PRORAMMING 2 6
STEP 2 PROGRAM DESIGN
• focusing on the main goal of the program then break to
smaller manageable components
• Top-bottom program design or modular approach
• Use of program design tools:
• Algorithm
• Pseudocode
• Flowchart
• Structured charts

COMPUTER PRORAMMING 2 7
STEP 2 PROGRAM DESIGN

STRUCTURED
ALGORITHM PSEUDOCODE FLOWCHART
CHART
• step-by-step • a kind of • diagram that • show top-down
description of structured shows the logic design of
how to arrive at a English for of the program program
solution describing • use simple • Each box in the
algorithms geometric structure chart
• expressed in shapes to depict indicates a task
program processes and that program
language like arrows to show must accomplish
constructs process/data
flow and
relationships

COMPUTER PRORAMMING 2 8
STEP 2 PROGRAM DESIGN
Algorithm
1. Determine working hours Structured Chart
2. Determine employee rate Generate Pay
3. Calculate the pay by
multiplying working hours
Get hours Calculate
and employee’s rate and rate Pay
4. Display employee’s pay
Display
Pay

COMPUTER PRORAMMING 2 9
STEP 3 PROGRAM CODING

• Translating an algorithm, pseudocode or


flowchart into a specific programming
language
• Usually uses high-level programming
languages: BASIC, COBOL, PASCAL, C, C++,
Java, Phython, Ruby, Perl
• Each language has its own syntax (rules of
language)
• Violation of these rules result to errors in
the code
COMPUTER PRORAMMING 2 10
STEP 4 TESTING AND DEBUGGING
• Method of validating the program to ensure that it correctly works
on the required task
• Trace errors or bugs in the code
COMPILATION DEBUGGING
TEST RUN
PROCESS PROCESS
• Generate an executable code • Detect errors after compilation • Feed dummy data to produce an
• Compile a source-code • Correct syntax errors in the expected output
(translated statements) to an program code • Run-time error – causes the running
object code (executable code) • Syntax errors – error in program to end abnormally
structure or spelling of a • Logic error – produces undesired
statement detected by the result or output
compiler

COMPUTER PRORAMMING 2 11
STEP 5 IMPLEMENTATION

• Actual use of the program with real-time or live data


• Supervised by the implementing programmer
• Monitors the output for the next three (3) months to
ensure that no errors will be left unnoticed or
uncorrected

COMPUTER PRORAMMING 2 12
STEP 6 MAINTENANCE
• Fix program errors and updates the software
• Provide back-ups and storing data files in safe places
• Documentation a written description of the program
cycle and specific facts of the program
✓ Description of the program
✓ Program Design Tools
✓ Data-record descriptions
✓ Program listing
✓ Testing results
✓ Comments

COMPUTER PRORAMMING 2 13
COMPUTER PRORAMMING 2 14
Resources:
• Padre, Nilo M. et al. (2016). Programming Concepts Logic Formulation, 1st ed.
Manila: Unlimited Books Library Services & Publishing, Inc.
• Software Engineering. (2019). Program Development Life Cycle (PDLC).
Retrieved from https://www.geeksforgeeks.org/software-engineering-
program-development-life-cycle-pdlc/
• Teacher Kayla [Learn with Teacher Patrick & Teacher Kayla]. (2020, January 3).
Program Development Cycle [Video]. YouTube.
https://www.youtube.com/watch?v=lH-YZMsh0sA

COMPUTER PRORAMMING 2 15
COMPUTER PRORAMMING 2

You might also like