You are on page 1of 18

May 6, 2021

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.

 Involves asking questions to confirm our understanding.

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.

 To break our program into logical steps each step will


be a separate module. We can see the interaction between
all the parts (modules) of 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.

The kitchen and bathrooms will be covered with


linoleum; the rest of the house is to be carpeted.
10
STRUCTURE CHARTS

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.

Input/output Read data/ print result

Statements that performs


Process computations or data
manipulations.

Decision/selection Compare the rules


14
Connecting points in an
Connector
algorithm
FLOWCHART
Calculating the area and cost for the bathrooms

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).

 Please sit in your own group.

 Please do the assignment NOW. Submit the assignment according


18

to the date on the assignment sheet.

You might also like