la5 program phases

24
PROGRAMMING Program Development Phases 040407 Prepared by: Norhasimah Mohamed, Head Of ICT Panel, SMK Sungai Pusu, Gombak Selangor.

Upload: shimamohd

Post on 12-Jan-2015

4.880 views

Category:

Technology


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: La5 Program Phases

PROGRAMMING

Program Development Phases

040407

Prepared by: Norhasimah Mohamed, Head Of ICT Panel, SMK Sungai Pusu, Gombak Selangor.

Page 2: La5 Program Phases

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

PROGRAM DEVELOPMENT PHASES

Page 4: La5 Program 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.

Page 5: La5 Program Phases

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

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

2. Design Phase

Page 8: La5 Program Phases

2. Design Phase

Graphic User interface

Page 9: La5 Program Phases

3. Coding

Page 10: La5 Program Phases

3. Testing & Debugging

Page 11: La5 Program Phases

5. Documentation

• 1. Internal Documentation

• 2. External Documentation

Page 12: La5 Program Phases

Learning Outcomes

• Apply program development phases to solve problems

• Develop a program

Page 13: La5 Program Phases

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

Programming Development Phase

1. Problem Analysis

2. Program Design

3. Coding

4. Testing and Debugging

5. Documentation

Page 15: La5 Program Phases

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

2. Program Design

• Write the pseudo code

• Write flow chart

• Design user interface

Page 17: La5 Program Phases

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

Flow Chart

BEGIN

READ number 1 & 2

CALCULATE

END

PRINT the answer

Page 19: La5 Program Phases

User Interface

Page 20: La5 Program Phases

3. Coding

• SCRIPTING

Page 21: La5 Program Phases

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

4. Testing and Debugging

• RUN & COMPILING

Page 23: La5 Program Phases

5. Documentation

• Internal Documentation

• External Documentation

Page 24: La5 Program Phases

Task for today

• Develop one simple program to help your younger brother.

• Modify the additional formula to use for subtractions, multiplication and division.