Successfully reported this slideshow.

La5 Program Phases


Published on

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

La5 Program Phases

  1. 1. PROGRAMMING Program Development Phases 040407 Prepared by: Norhasimah Mohamed, Head Of ICT Panel, SMK Sungai Pusu, Gombak Selangor.
  2. 2. Learning Outcomes <ul><li>Describe the five main phases in program development </li></ul><ul><li>1. Problem Analysis </li></ul><ul><li>2. program Design </li></ul><ul><li>3. Coding </li></ul><ul><li>4. Testing and Debugging </li></ul><ul><li>5. Documentation </li></ul>
  4. 4. PROGRAM DEVELOPMENT PHASES <ul><li>1. PROBLEM ANALYSIS PHASE </li></ul><ul><li>programmer will interview the client to find out what the client’s needs are. </li></ul><ul><li>2. PROGRAM DESIGN PHASE </li></ul><ul><li>Based on that, the programmer will design a flow chart that represents the needs of the client. </li></ul>
  5. 5. PROGRAM DEVELOPMENT PHASES <ul><li>3. CODING PHASE </li></ul><ul><li>Once the flow chart is confirmed, the programmer will perform coding . </li></ul><ul><li>4. TESTING AND DEBUGGING PHASE </li></ul><ul><li>The program will be tested by the users at the client’s site. </li></ul><ul><li>If there are any errors, the programmer will do a debugging of the program. </li></ul><ul><li>5. DOCUMENTATION PHASE </li></ul><ul><li>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. </li></ul>
  6. 6. 1. Problem Analysis <ul><li>Interview the client. </li></ul><ul><li>the programmer identifies the data input, process and output for the program. </li></ul><ul><li>Identify the possible solution. </li></ul>
  7. 7. 2. Design Phase
  8. 8. 2. Design Phase Graphic User interface
  9. 9. 3. Coding
  10. 10. 3. Testing & Debugging
  11. 11. 5. Documentation <ul><li>1. Internal Documentation </li></ul><ul><li>2. External Documentation </li></ul>
  12. 12. Learning Outcomes <ul><li>Apply program development phases to solve problems </li></ul><ul><li>Develop a program </li></ul>
  13. 13. Situation <ul><li>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. </li></ul><ul><li>Your program should have command button to calculate the additional, subtraction, multiplication, and division for at least two integer numbers </li></ul>
  14. 14. Programming Development Phase <ul><li>Problem Analysis </li></ul><ul><li>Program Design </li></ul><ul><li>Coding </li></ul><ul><li>Testing and Debugging </li></ul><ul><li>Documentation </li></ul>
  15. 15. 1. Problem Analysis <ul><li>What the problem? </li></ul><ul><li>What the input, process, and output? </li></ul><ul><li>What the formula on how to calculate the mathematic operations? </li></ul>1
  16. 16. 2. Program Design <ul><li>Write the pseudo code </li></ul><ul><li>Write flow chart </li></ul><ul><li>Design user interface </li></ul>2
  17. 17. Pseudo code <ul><li>PROGRAM Mathematic_Operations </li></ul><ul><li>READ the first number </li></ul><ul><li>READ the second number </li></ul><ul><li>CALCULATE the sum of number 1 and number 2 </li></ul><ul><li>PRINT the answer </li></ul><ul><li>END PROGRAM </li></ul>
  18. 18. Flow Chart BEGIN READ number 1 & 2 CALCULATE END PRINT the answer
  19. 19. User Interface
  20. 20. 3. Coding <ul><li>SCRIPTING </li></ul>3
  21. 21. Coding <ul><li>‘ formula for additional (internal documentation) </li></ul><ul><li>Private Sub cmdAdd_Click() </li></ul><ul><li>Dim Number1, Number2 As Integer </li></ul><ul><li>Number1 = txtNumber1.Text </li></ul><ul><li>Number2 = txtNumber2.Text </li></ul><ul><li>txtSum = Number1 + Number2 </li></ul><ul><li>End Sub </li></ul>
  22. 22. 4. Testing and Debugging <ul><li>RUN & COMPILING </li></ul>4
  23. 23. 5. Documentation <ul><li>Internal Documentation </li></ul><ul><li>External Documentation </li></ul>5
  24. 24. Task for today <ul><li>Develop one simple program to help your younger brother. </li></ul><ul><li>Modify the additional formula to use for subtractions, multiplication and division. </li></ul>