PROGRAMMING Program Development Phases 040407 Prepared by: Norhasimah Mohamed, Head Of ICT Panel, SMK Sungai Pusu, Gombak Selangor.
Learning Outcomes Describe the five main phases in program development 1. Problem Analysis 2. program Design 3. Coding 4. Testing and Debugging 5. Documentation
PROGRAM DEVELOPMENT PHASES
PROGRAM DEVELOPMENT PHASES 1. PROBLEM ANALYSIS PHASE programmer will  interview  the client to find out what the client’s needs are. 2. PROGRAM DESIGN PHASE Based on that, the programmer will design a  flow chart  that represents the needs of the client.
PROGRAM DEVELOPMENT PHASES 3. CODING PHASE Once the flow chart is confirmed, the programmer will perform  coding . 4. TESTING AND DEBUGGING PHASE The program will be  tested  by the users at the client’s site.  If there are any errors, the programmer will do a  debugging  of the program. 5. DOCUMENTATION PHASE After this, the programmer will complete the documentation for the program; this includes the  user manual , a clear layout of the input and output records and a program listing.
1. Problem Analysis Interview the client. the programmer identifies the data input, process and output for the program. Identify the possible solution.
2. Design Phase
2. Design Phase Graphic User interface
3. Coding
3. Testing & Debugging
5. Documentation 1. Internal Documentation 2. External Documentation
Learning Outcomes Apply program development phases to solve problems Develop a program
Situation Your younger brother has a problem with a basic mathematic operations like addition, subtraction, multiplication, and division. Your parents ask you to develop one simple program using Visual Basic to help your brother. Your program should have command button to calculate the additional, subtraction, multiplication, and division for at least two integer numbers
Programming Development Phase Problem Analysis Program Design Coding Testing and Debugging Documentation
1. Problem Analysis What the problem? What the input, process, and output? What the formula on how to calculate the mathematic operations? 1
2. Program Design Write the  pseudo code Write  flow chart Design  user interface 2
Pseudo code PROGRAM Mathematic_Operations READ the first number READ the second number CALCULATE the sum of number 1 and number 2 PRINT the answer END PROGRAM
Flow Chart BEGIN READ number 1 & 2 CALCULATE END PRINT the answer
User Interface
3. Coding SCRIPTING 3
Coding ‘ formula for additional (internal documentation) Private Sub cmdAdd_Click() Dim Number1, Number2 As Integer Number1 = txtNumber1.Text Number2 = txtNumber2.Text txtSum = Number1 + Number2 End Sub
4. Testing and Debugging RUN & COMPILING 4
5. Documentation Internal Documentation External Documentation 5
Task for today Develop one simple program to help your younger brother. Modify the additional formula to use for subtractions, multiplication and division.

La5 Program Phases

  • 1.
    PROGRAMMING Program DevelopmentPhases 040407 Prepared by: Norhasimah Mohamed, Head Of ICT Panel, SMK Sungai Pusu, Gombak Selangor.
  • 2.
    Learning Outcomes Describethe five main phases in program development 1. Problem Analysis 2. program Design 3. Coding 4. Testing and Debugging 5. Documentation
  • 3.
  • 4.
    PROGRAM DEVELOPMENT PHASES1. PROBLEM ANALYSIS PHASE programmer will interview the client to find out what the client’s needs are. 2. PROGRAM DESIGN PHASE Based on that, the programmer will design a flow chart that represents the needs of the client.
  • 5.
    PROGRAM DEVELOPMENT PHASES3. CODING PHASE Once the flow chart is confirmed, the programmer will perform coding . 4. TESTING AND DEBUGGING PHASE The program will be tested by the users at the client’s site. If there are any errors, the programmer will do a debugging of the program. 5. DOCUMENTATION PHASE After this, the programmer will complete the documentation for the program; this includes the user manual , a clear layout of the input and output records and a program listing.
  • 6.
    1. Problem AnalysisInterview the client. the programmer identifies the data input, process and output for the program. Identify the possible solution.
  • 7.
  • 8.
    2. Design PhaseGraphic User interface
  • 9.
  • 10.
    3. Testing &Debugging
  • 11.
    5. Documentation 1.Internal Documentation 2. External Documentation
  • 12.
    Learning Outcomes Applyprogram development phases to solve problems Develop a program
  • 13.
    Situation Your youngerbrother has a problem with a basic mathematic operations like addition, subtraction, multiplication, and division. Your parents ask you to develop one simple program using Visual Basic to help your brother. Your program should have command button to calculate the additional, subtraction, multiplication, and division for at least two integer numbers
  • 14.
    Programming Development PhaseProblem Analysis Program Design Coding Testing and Debugging Documentation
  • 15.
    1. Problem AnalysisWhat the problem? What the input, process, and output? What the formula on how to calculate the mathematic operations? 1
  • 16.
    2. Program DesignWrite the pseudo code Write flow chart Design user interface 2
  • 17.
    Pseudo code PROGRAMMathematic_Operations READ the first number READ the second number CALCULATE the sum of number 1 and number 2 PRINT the answer END PROGRAM
  • 18.
    Flow Chart BEGINREAD number 1 & 2 CALCULATE END PRINT the answer
  • 19.
  • 20.
  • 21.
    Coding ‘ formulafor additional (internal documentation) Private Sub cmdAdd_Click() Dim Number1, Number2 As Integer Number1 = txtNumber1.Text Number2 = txtNumber2.Text txtSum = Number1 + Number2 End Sub
  • 22.
    4. Testing andDebugging RUN & COMPILING 4
  • 23.
    5. Documentation InternalDocumentation External Documentation 5
  • 24.
    Task for todayDevelop one simple program to help your younger brother. Modify the additional formula to use for subtractions, multiplication and division.