SE-UNIT-3-Structured System Analysis and Design - Notes
SE-UNIT-3-Structured System Analysis and Design - Notes
System Analysis
Introduction to Structured System Analysis
Development Methodology (SSADM)
System survey
Structured analysis
Structured design
Hardware study
System implementation
maintenance
Tools for analysis-
Decision tree
Decision table
Structured English
Data flow diagram
Entity relationship diagram
Data dictionary
System Design
System
Survey
Structured
Analysis
Maintenance
Hardware
Study
The structured analysis uses symbols instead of narrative description and creates a
graphic model of the system.
Structured analysis uses tools like:
1. Data Flow Diagram
2. Data Dictionary
3. Structured analysis
4. Decision Trees
5. Decision Tables
:SSADM Methodology:
1. System Survey:
The first step in SSADM is system survey. This step is similar to feasibility study in
SDLC. The sub activities in survey are:
1. Identify the scope of the current system.
2. Identify and list the deficiencies in the current system according to user
requirements.
3. Establish new system goals and identify the constraints.
4. Prepare a document consisting of:
a. Goals and objectives
b. Customized profile life cycle
c. Constraints regarding technical and procedural aspect
d. Cost benefit analysis
2. Structured Analysis:
This is second stage. It is techniques and graphical tools like data dictionary and
data flow diagrams.
System analyst develops the new system specification by using this tools and user of
the system can easily understand the system.
Next, system analyst prepare the model which concentrates on “What to implements”
not “How to implements”.
3. Structured Design:
Structured Design is a data-flow based methodology. The input for structured design
is structured specifications which is the output of structured analysis. It also receives
input from the hardware study.
In short, system design involves transforming a logical design into physical design.
This step is much more exacting than designing logical design specifications.
Here the important activity is “Software Packaging”.
The software packaging includes:
o Input-output design
o Files and database design
o Program design
o Control design
Activities that run parallel to this detailed design steps of software packaging are:
o Equipment specifications
o Test specifications
o User interface specifications
The main input, structured specifications (i.e. logical design specifications) is used to
derive structure charts.
The most difficult step in SSADM is that of converting DFSs of structured
specifications into software packages.
To do this, we need to construct what is called Structured Chart.
While a DFD considers a sequential order of processes the structured chart begins
with the most important process (BOSS) and then goes on to its subordinate
processes.
The top level of structured chart shows the most important division of work, the
lowest level at the bottom shows the details.
This is essential to divide the total design process into smaller independent modules
which in turn help to have flexibility in the design, i.e. any changes made in one
particular module will not affect the other modules.
So, this technique provides a top-down, flexible design which is easier to maintain.
A structured walk through is an organized step by step tracing through of a design by
a group or users.
The purpose of walk through is to find where improvements can be made in the
system or in the development process.
There are two types of structured walk throughs:
At this stage some errors are introduced purposely to test whether they will
be spotted by the program.
4. Conversion:
Once the system has been tested successfully then the part which remains
is that of putting them into the operation.
The conversion team must manage the smooth changeover from the old
system to the new system.
This requires:
i. Training Personnel
ii. Modifying parts of the old system
iii. Running parallel system or dual system until everything goes as
planned.
5. Documentation:
Documentation means putting it in the written from about how a system is
designed or functions.
The documentation includes:
1. Design Documentation: It describes the overall system design and
includes system flowcharts, all input/output formats, file description,
control requirements and report specifications.
2. Program Documentation: It consists of programming specifications like
program logic, graphic aids, input-output formats etc.
3. Training Documentation: It includes user training manuals and
materials to be used in the conversion and the installation of new
system.
4. Operations Documentation: It contains instructions for normal
operations as well as directions for handling problems and breakdowns.
5. User reference Documentation: It carries on after training is over and
the system is installed. It should provide quick, clear answers like a
dictionary.
6. Maintenance:
This is the last step in the system life cycle. However it takes the longest
duration.
Maintenance may be corrective, adaptive or perfective.
In corrective maintenance errors or bugs are rectified.
In adaptive maintenance the user requirements if any are still considered
and the necessary changes are made.
In perfective maintenance efforts will be constantly going on to prefect the
system in terms of response time and resource requirements.
:Advantages of SSADM:
:Decision Table:
Definition: Data flow diagram is a graphical aid for defining systems inputs,
processes and outputs. It represents flow of data through the system.
Definition: Data flow diagram is a graphical aid for defining systems inputs,
processes and outputs. It represents flow of data through the system.
DFDs serve two purposes:
1. Provide a graphic tool which can be used by the analyst to explain his
understanding of the system to the user
2. They can be readily converted into a structured chart which can be used in
design.
Symbols used in DFDs: DFD use four types of symbols which represent system
components such as:
1. External entity
2. Process
3. Data flow
4. Data store
The use of specific items associated with each element depends on whether
Yordon or Gane and Sarson approach is used.
Rules for Constructing a DFD: The following rules may be used while constructing
DFDs:
1. Processes should be named and numbered for easy reference.
2. The direction of flow is from top to bottom and from left to right. Data
traditionally flow from the source to the destination although they may flow
back to the source.
3. When a process is exploded into lower level details, they are numbered.
4. The names of data stores, sources and destinations are written in capital
letters. Process and data flow names have the first letter of each word
capitalized.
1. Data flow names include the 1. Data flow names describe the data
implementation facts as names, they contain. They do not refer to the
numbers, media, timing etc. form or document on which they
reside.
2. Process names include the name of 2. Process names describe the work
the processor i.e. person, done without referring to e.g. Account
department, computer system etc. receivable, order processing etc.
3. Data stores identify their computer 3. Physical location of data stores is
and manual implementation. irrelevant. Many times, the same data
store may be shared by many
subsystems and processes.
4. This is more realistic and 4. This is more logical in format. This is
implementation oriented. The PDFD more abstract than PDFD and less
are more detailed in nature. dependent on implementation steps.
2. Weak Entity: The entity which has no primary key is called Weak Entity.
Entities may not be distinguished by their attributes but their relationship to
another entity. We then establish a relationship, DEDUCTIONS, between the
modified entity EMPLOYEE* and DEPENDENTS as shown in figure.
In this case, the instances of the entity from the set DEPENDENTS are
distinguishable only by their relationship with an instance of an entity from the
entity set EMPLOYEE. The relationship set DEDUCTIONS is an example of an
identifying relationship and the entity set DEPENDENTS is an example of a
weak entity.
Entity Set: An Entity Set is group of similar objects of concern to an organization for
which it maintains data.
For Example: set of all persons, companies, trees, holidays
:Attributes:
The properties that characterize an entity set are called its attributes. Attribute is
also called data item, data element, data field, item, elementary item or object
property.
For Example, Employee entity has attributes like id, name, address, phone no
Types of Attributes:
1. Single valued attributes
2. Composite attributes
3. Derived attributes
4. Multi valued attributes
5. Attributes with null values
Degree of Relationship set: Is the number of entity types that participate in it.
The three most common relationship degrees are unary (degree 1), binary (degree
2) and ternary (degree 3)
Higher degree relationships are possible but rarely encountered in practice
1. Unary Relationship: Is between the instances of a single entity type (also called
recursive relationships)
‘Is_Married_To’ is a one-to-one relationship between instances of the PERSON
entity type
‘Manages’ is a one-to-many relationship between instances of the EMPLOYEE
entity type
2. Binary Relationship: Between the instances of two entity types, and is the most
common type of relationship encountered in data modelling. e.g. (one-to-one) an
EMPLOYEE is assigned one PARKING_PLACE, and each PARKING_PLACE is assigned to
one EMPLOYEE
e.g. (one to many) a PRODUCT_LINE may contain many PRODUCTS, and each
PRODUCT belongs to only one PRODUCT_LINE
e.g. (many-to-many) a STUDENT may register for more than one COURSE, and
each COURSE may have many STUDENTS
3. Ternary Relationship: A ternary relationship is a simultaneous relationship among the
instances of 3 entity types.
It is the most common relationship encountered in data modelling
The following Fig. shows a typical ternary relationship
Here, vendors can supply various parts to warehouses
The relationship ‘Supplies’ is used to record the specific PARTs supplied by a given
VENDOR to a particular WAREHOUSE
There are two attributes on the relationship ‘Supplies’, Shipping_Mode and
Unit_Cost
e.g. one instance of ‘Supplies might record that VENDOR X can ship PART C to
WAREHOUSE Y, that the Shipping_Mode is ‘next_day_air’ and the Unit_Cost is 5-
00 per unit
:Entity-Relationship Diagram:
E-R diagram or Entity-Relationship diagrams basically represent the overall logical
structure of a database. The data models of a database represent a collection of
conceptual tools for describing data, data relationship, data semantics and
consistency constraints.
The various data models fall into three categories:
1. Object-base logical model
2. Record-based logical model
3. Physical data model
Entity-relationship model is a kind of object-based logical model. This model is
based on a perception of a real world, which consists of a collection of basic
objects entities and relationship among these objects.
In addition, the E-R model represents certain constraints to which the contents of
a database must confirm. The overall logical structure of a database can be
expressed graphically by an E-R diagram, which consists of the following
components:
o Rectangles represent entity sets.
o Diamonds represent relationship sets.
o Lines link attributes to entity sets and entity sets to relationship sets.
o Ellipses represent attributes
o Double ellipses represent multi-valued attributes.
o Dashed ellipses denote derived attributes.
o Underline indicates primary key attributes
Relationship Degree:
Relationship Types:
We express cardinality constraints by drawing either a directed line ((), signifying “one,” or
an undirected line (—), signifying “many,” between the relationship set and the entity set.
One-to-one relationship:
A customer is associated with at most one loan via the relationship borrower
A loan is associated with at most one customer via borrower
One-to-many relationship:
In the one-to-many relationship a loan is associated with at most one customer via
borrower, a customer is associated with several (including 0) loans via borrower
Many-to-one relationship:
In a many-to-one relationship a loan is associated with several (including 0) customers via
borrower, a customer is associated with at most one loan via borrower
Many-to-many relationship:
A customer is associated with several (possibly 0) loans via borrower
A loan is associated with several (possibly 0) customers via borrower
Specialization:
Top-down design process; we designate subgroupings within an entity set that are
distinctive from other entities in the set.
These sub groupings become lower-level entity sets that have attributes or
Generalization:
A bottom-up design process – combine a number of entity sets that share the
same features into a higher-level entity set.
Specialization and generalization are simple inversions of each other; they are
represented in an E-R diagram in the same way.
The terms specialization and generalization are used interchangeably.
Aggregation:
Consider the ternary relationship works-on, which we saw earlier
Suppose we want to record managers for tasks performed by an
employee at a branch
:Data Dictionary:
A data dictionary is a collection of data about data.
It maintains information about the definition, structure, and use of each data
element that an organization uses.
There are many attributes that may be stored about a data element.
“Data dictionary contains description & definition consulting the data structure, data
elements, their interrelationship & other characteristics of a system.”
Objectives of Data Dictionary
A standard definition of all terms in a system i.e. each data item is uniquely
identified and defined.
ii. Easy cross referencing between subsystem’s program and modules.
iii. Simple program maintenance.
iv. It contains information about the data of the system and there is an entry in
the data dictionary for every element of DFD. Thus DFD and Data Dictionary
are compliment of each other.
Data Dictionary lists all data elements, flows, stores, process of the system and it
gives the detail about each item in following format –
Data types, data name, data description, data characteristics, data control
information, composition, physical location of data, etc.
Data dictionary for data element Employee code in dictionary –
Data Element - Employee code
Description - Unique code assigned for each
employee
Type - char
Length - 4
Range - 0-9999
Data Stores - Employee table, Payroll table
Human engineering:
The analyst should try to formulate a systems design that,
o Incorporates system features that are easy to understand and use
o Avoid user error or carelessness
o Provides enough flexibility to fit a variety of individual user needs
o Adapts to increasing user familiarity with the system
o Generally functions in a manner that seems natural to the user
Ergonomic design:
It refers to the physical factors of an information system that affect the performance,
comfort, and satisfaction of direct users.
The design of terminals, chairs and other equipment influences the amount of
weakness and damage involved in using these items.
These factors in turn affect such concerns as the introduction of errors during data
entry, user efficiency, and even absenteeism.
Provide detailed software development specifications:
The specifications state input, output and the processing functions and algorithms
used to perform them.
Software modules and routines focusing on what function each performs and the
procedures for accomplishing them are specified as well.
Selection of programming languages, software packages and software utilities occurs
during the logical design process and the recommendations are included in the
software specifications.
Conform to design standards:
The objectives of systems design are broad and affect many aspects of both the
application and the organization in which the system will be used.
Information systems groups also maintain systems development standards that will
generate system design specifications.
Examples of areas included in design standards:
o Data standards: guidelines for data item names, length, and type
specifications that are used for all applications developed by the information
systems group.
o Coding standards: Formal abbreviations and designations to describe
activities and entities within the organizations.
o Structural standards: Guidelines on how to structure the system the system
and software. Policies on software modularization, structured coding, and the
interrelation of system components.
o Documentation standards: Descriptions of systems design features,
interrelation of components and operating characteristics that can be reviewed
to learn the details of the application.