la5 program phases
DESCRIPTION
TRANSCRIPT
![Page 1: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/1.jpg)
PROGRAMMING
Program Development Phases
040407
Prepared by: Norhasimah Mohamed, Head Of ICT Panel, SMK Sungai Pusu, Gombak Selangor.
![Page 2: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/2.jpg)
Learning Outcomes
• Describe the five main phases in program development
1. Problem Analysis2. program Design3. Coding4. Testing and Debugging5. Documentation
![Page 3: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/3.jpg)
PROGRAM DEVELOPMENT PHASES
![Page 4: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/4.jpg)
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.
![Page 5: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/5.jpg)
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.
![Page 6: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/6.jpg)
1. Problem Analysis
• Interview the client.
• the programmer identifies the data input, process and output for the program.
• Identify the possible solution.
![Page 7: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/7.jpg)
2. Design Phase
![Page 8: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/8.jpg)
2. Design Phase
Graphic User interface
![Page 9: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/9.jpg)
3. Coding
![Page 10: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/10.jpg)
3. Testing & Debugging
![Page 11: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/11.jpg)
5. Documentation
• 1. Internal Documentation
• 2. External Documentation
![Page 12: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/12.jpg)
Learning Outcomes
• Apply program development phases to solve problems
• Develop a program
![Page 13: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/13.jpg)
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
![Page 14: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/14.jpg)
Programming Development Phase
1. Problem Analysis
2. Program Design
3. Coding
4. Testing and Debugging
5. Documentation
![Page 15: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/15.jpg)
1. Problem Analysis
• What the problem?
• What the input, process, and output?
• What the formula on how to calculate the mathematic operations?
![Page 16: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/16.jpg)
2. Program Design
• Write the pseudo code
• Write flow chart
• Design user interface
![Page 17: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/17.jpg)
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
![Page 18: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/18.jpg)
Flow Chart
BEGIN
READ number 1 & 2
CALCULATE
END
PRINT the answer
![Page 19: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/19.jpg)
User Interface
![Page 20: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/20.jpg)
3. Coding
• SCRIPTING
![Page 21: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/21.jpg)
Coding
‘formula for additional (internal documentation)
Private Sub cmdAdd_Click()Dim Number1, Number2 As Integer Number1 = txtNumber1.Text Number2 = txtNumber2.Text txtSum = Number1 + Number2End Sub
![Page 22: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/22.jpg)
4. Testing and Debugging
• RUN & COMPILING
![Page 23: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/23.jpg)
5. Documentation
• Internal Documentation
• External Documentation
![Page 24: La5 Program Phases](https://reader033.vdocuments.us/reader033/viewer/2022061216/54b2cbe84a7959d3168b456d/html5/thumbnails/24.jpg)
Task for today
• Develop one simple program to help your younger brother.
• Modify the additional formula to use for subtractions, multiplication and division.