PROGRAMMING - PowerPoint PPT Presentation

About This Presentation
Title:

PROGRAMMING

Description:

PROGRAMMING Program Development Learning Outcomes Apply program development phases to solve problems Develop a program Situation Your younger brother has a problem ... – PowerPoint PPT presentation

Number of Views:49
Avg rating:3.0/5.0
Slides: 15
Provided by: norh154
Category:

less

Transcript and Presenter's Notes

Title: PROGRAMMING


1
PROGRAMMING
  • Program Development

2
Learning Outcomes
  • Apply program development phases to solve
    problems
  • Develop a program

3
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 system using Visual
    Basic to help your brother.
  • Your system should have function button to
    calculate the additional, subtraction,
    multiplication, and division for at least two
    integer numbers

4
Programming Development Phase
  1. Problem Analysis
  2. Program Design
  3. Coding
  4. Testing and Debugging
  5. Documentation

5
1. Problem Analysis
1
  • What the problem?
  • What the input, process, and output?
  • What the formula on how to calculate the
    mathematic operations?

6
2. Program Design
2
  • Write the pseudo code
  • Write flow chart
  • Design user interface

7
Pseudo code
  • PROGRAM Mathematic_Operations
  • READ the first number
  • READ the second number
  • READ commandbutton Add
  • CALCULATE the sum of number 1 and number 2
  • PRINT the answer for Addition
  • END PROGRAM

8
Flow Chart
START
READ number 1 2
CALCULATE
PRINT the answer
STOP/END
9
User Interface
10
3. Coding
3
  • SCRIPTING

11
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

12
4. Testing and Debugging
4
  • RUN COMPILING

13
5. Documentation
5
  • Internal Documentation
  • External Documentation

14
Exercises
  • Modify the additional formula to use for
    subtractions, multiplication and division.
Write a Comment
User Comments (0)
About PowerShow.com