la5 program phases

Post on 12-Jan-2015

4.880 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

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 Analysis2. program Design3. Coding4. Testing and Debugging5. 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

1. Problem Analysis

2. Program Design

3. Coding

4. Testing and Debugging

5. Documentation

1. Problem Analysis

• What the problem?

• What the input, process, and output?

• What the formula on how to calculate the mathematic operations?

2. Program Design

• Write the pseudo code

• Write flow chart

• Design user interface

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

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

4. Testing and Debugging

• RUN & COMPILING

5. Documentation

• Internal Documentation

• External Documentation

Task for today

• Develop one simple program to help your younger brother.

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

top related