Program Design: Mostafijur Rahman Akhond Lecture, CSE BRAC University
Program Design: Mostafijur Rahman Akhond Lecture, CSE BRAC University
Ref: Whitten et all, Systems Analysis and Design Methods 7e. McGraw-Hill Higher Education
2
Introduction
● Program design – Analysts determine what programs will be written and create
instructions for the programmers.
● Various implementation decisions are made about the new system (e.g., what
programming language(s) will be used.)
● The DFDs created during analysis are modified to show these implementation
decisions, resulting in a set of physical data flow diagrams.
● The analysts determine how the processes are organized, using a structure
chart to depict the decisions.
● Detailed instructions called program specifications are developed.
3
Steps to Create the Physical Data
Flow Diagram
4
Physical DFD Example
5
Logical to Physical dfd
6
Structure Chart
8
Structure chart notions
9
Structure chart notions (2)
10
Revised Structure chart
11
12
Design Guidelines
13
Build Modules with High Cohesion
● Cohesion refers to how well the lines of code within each module relate to
each other.
● Cohesive modules are easy to understand and build because their code
performs one function effectively.
16
Create High Fan-In
● Fan-in describes the number of control modules that
communicate with a subordinate.
17
Avoid High Fan-Out
• fan-in is call by other modules.
• fanout is call from that module.
18
Examples of Fan-in and Fan-out
19
Check list for structure chart quality
20
Program Specification
• Program Specifications are documents that include explicit
instructions on how to program pieces of code.
• There is no formal syntax for program specification.
• Four components are essential for program specification:
- Program information;
- Events;
- Inputs and outputs; and
- Pseudocode – a detailed outline of lines of code that need to
be written.
- Additional notes and comments can also be included.
21
22
Pseudocode Example
23
Summery
24