Professional Documents
Culture Documents
BFF2003 BHM2003 Lecture 1
BFF2003 BHM2003 Lecture 1
BFF/BHM2003: LECTURE 1
BFF/BHM 2003
COMPUTER
PROGRAMMING
1
LECTURE 1
May 6, 2021 BFF2003: LECTURE 1
2
PROGRAM DEVELOPMENT
May 6, 2021 BFF2003: LECTURE 1
3
PROGRAM DEVELOPMENT
May 6, 2021 BFF2003: LECTURE 1
4
PROGRAM DEVELOPMENT
UNDERSTAND THE PROBLEM
Reading the requirements statement carefully.
May 6, 2021
BFF2003: LECTURE 1
Review our understanding with the user and the systems
analyst.
5
May 6, 2021 BFF2003: LECTURE 1
UNDERSTAND THE PROBLEM
6
UNDERSTAND THE PROBLEM
Each of these potential users requires a different
measure.
May 6, 2021
BFF2003: LECTURE 1
7
DEVELOP THE SOLUTION
Once we understand the problem, and clarified any
May 6, 2021
questions we may have, we need to develop our solution.
BFF2003: LECTURE 1
We use three tools:
Structure
charts
Pseudocode
Flowcharts
8
STRUCTURE CHARTS
A hierarchy chart
May 6, 2021
BFF2003: LECTURE 1
Shows the functional flow through our program.
9
STRUCTURE CHARTS
Assume the following answer:
May 6, 2021
The purpose of calculating the square footage is to
install new floor covering.
BFF2003: LECTURE 1
Only the living space will be carpeted. The garage and
closets will not be considered.
May 6, 2021
BFF2003: LECTURE 1
11
Structure Chart for Calculating Square Footage
PSEUDOCODE
Part English and part program logic.
May 6, 2021
BFF2003: LECTURE 1
Describein precise algorithmic detail, what the program
being designed is to do.
12
May 6, 2021 BFF2003: LECTURE 1
13
FLOWCHART
FLOWCHART
Symbol Name Meaning
May 6, 2021
Flow lines Direction of process
BFF2003: LECTURE 1
Terminal (START/END) Start /end of a program.
May 6, 2021
BFF2003: LECTURE 1
15
WRITE THE PROGRAM
May 6, 2021
Before start write the program, review the steps that
we’ve used first.
BFF2003: LECTURE 1
Start writing the program with the top box on the
structure chart and work our way to the bottom.
16
TEST THE PROGRAM
May 6, 2021
Program testing can be a very tedious and time-
consuming part of program development.
BFF2003: LECTURE 1
Twotypes of testing:
Blackbox- by system test engineer/ the user
Whitebox-by the programmer.
17
END OF TODAY’S LECTURE
Thank you for your attention.
May 6, 2021
BFF2003: LECTURE 1
Now, we were move to the practical work
(the important part of this class).