Download presentation
Presentation is loading. Please wait.
Published byAldous Johns Modified over 8 years ago
2
Systems Analysis and Design in a Changing World, Fourth Edition
3
Learning Objectives Describe the steps involved in the traditional approach to designing the application architecture Develop a system flowchart Develop a structure chart using transaction analysis and transform analysis Write pseudocode for structured modules Explain how to use three-layer design with the traditional approach Systems Analysis and Design in a Changing World, 4th Edition
4
Overview Traditional approach to designing software
Overview of structured models, model development process, related terminology How data flow diagrams are annotated with automation boundary information How analysis phase models are transformed into design models using system flowcharts, structure charts, and module pseudocode Integration into other design phase activities Applying approach to a three-layer architecture Systems Analysis and Design in a Changing World, 4th Edition
5
The Structured Approach to Designing the Application Architecture
Consists of the application software programs Designed in conjunction with database and user interface. Module: Is small section of program code that carries out a single function. Hierarchy of modules ( main or boss , control and leaf) Computer Program: Set of modules that are compiled into a single executable entity System flow chart: diagram describes the overall flow of control between computer in a system
6
The Structured Approach to Designing the Application Architecture (Cont.)
Design internal logic of individual modules (pseudocode) Pseudocode: structured-programming –like statements that describe the logic of the module. Analysts use top-down approach ( Data flow diagrams and documentations). DFDs with automation boundaries ( Divides the computerized portions of the system from the manual portions). System flowcharts, structure charts, pseudocode Systems Analysis and Design in a Changing World, 4th Edition
7
Structured Design Models
Systems Analysis and Design in a Changing World, 4th Edition
8
The Automation System Boundary
Partitions data flow diagram processes into manual processes and automated systems Processes can be inside ( online or batch) or outside boundary (manual process). Data flows can be inside and outside of boundary Data flows that cross system boundary represent inputs and outputs of system ( user interfaces). Data flows that cross boundaries between programs represent program-to-program communication Systems Analysis and Design in a Changing World, 4th Edition
9
DFD with Automation System Boundary (Figure 10-2)
Systems Analysis and Design in a Changing World, 4th Edition
10
The System Flowchart Representation of various computer programs, files, databases, and associated manual processes that make up complete system Frequently constructed during analysis activities Graphically describes organization of subsystems into automated and manual components Can show type of transaction processing system Batch ( produce daily transaction file - process and update file). Real-time ( transaction entered—DMS`s updated) Systems Analysis and Design in a Changing World, 4th Edition
11
The System Flowchart (Cont.)
Many business systems today have both real-time and batch components. Credit card: purchases at least verified in real time and monthly account statements and customer payments typically are processed in batches. System flow chart is used to describe the overall organization of this type of systems and show the relationship between the real-time components and the batch processing. Systems Analysis and Design in a Changing World, 4th Edition
12
Common System Flowchart Symbols
Systems Analysis and Design in a Changing World, 4th Edition
13
Sample System Flowchart for Payroll System (Figure 10-4)
Systems Analysis and Design in a Changing World, 4th Edition
14
System Flowchart for RMO (Figure 10-5)
Systems Analysis and Design in a Changing World, 4th Edition
15
The Structure Chart A hierarchal diagram showing the relationships between the modules of a computer program. Describes functions and subfunctions of each part of system Higher-level module: are control modules that control the flow of execution. Lower- level module: are “worker-bee” modules and contain the program logic to actually perform the functions. Systems Analysis and Design in a Changing World, 4th Edition
16
The Structure Chart (Cont.)
Program call: occurs when one module invokes a lower-level module to perform a needed service. Data couples: the individual data items that are passed between modules in a program call. Simple and direct organization Each module performs a specific function Each layer in a program performs specific activities Chart is tree-like with root module and branches Systems Analysis and Design in a Changing World, 4th Edition
17
A Simple Structure Chart for the Calculate Pay Amounts Module
Systems Analysis and Design in a Changing World, 4th Edition
18
Structure Chart Symbols
Systems Analysis and Design in a Changing World, 4th Edition
19
Structure Chart Symbols (Cont.)
Part A: the rectangle represents a module. Part B: the rectangle with the double bars represents module that is used in several places ( optional). Part C: How data are passed between modules. Arrow with the open circle ( data couple). Arrow with the darkened circle (control couple flag): is purely internal information that is used between modules to indicate some result (eg. Record passing and validation test) Systems Analysis and Design in a Changing World, 4th Edition
20
Structure Chart Symbols (Cont.)
Part E: shows the notation used to indicate iteration through several modules. Part F: shows conditional calling of low- level modules( the program calls modules only when certain conditions exist. Systems Analysis and Design in a Changing World, 4th Edition
21
Structure Chart for Entire Payroll Program
Systems Analysis and Design in a Changing World, 4th Edition
22
Developing a Structure Chart
Transaction analysis Uses system flow chart and event table inputs Upper-level modules developed first Identifies each transaction supported by program Transform analysis Uses DFD fragments for inputs Computer program “transforms” inputs into outputs Charts have input, calculate, and output subtrees Systems Analysis and Design in a Changing World, 4th Edition
23
Event-partitioned DFD for the Order-Entry Subsystem (Figure 10-9)
Systems Analysis and Design in a Changing World, 4th Edition
24
High-Level Structure Chart for the Order-Entry Subsystem After Transaction Analysis
Systems Analysis and Design in a Changing World, 4th Edition
25
Steps to Create a Structure Chart from a DFD Fragment
Determine primary information flow Main stream of data transformed from some input form to output form Find process that represents most fundamental change from input to output Redraw DFD with inputs to left and outputs to right – central transform process goes in middle Generate first draft of structure chart based on redrawn data flow Systems Analysis and Design in a Changing World, 4th Edition
26
The Create New Order DFD Fragment
Systems Analysis and Design in a Changing World, 4th Edition
27
Decomposed DFD for Create New Order
Systems Analysis and Design in a Changing World, 4th Edition
28
Rearranged Create New Order DFD
Systems Analysis and Design in a Changing World, 4th Edition
29
First Draft of the Structure Chart for Create New Order (Figure 10-14)
Systems Analysis and Design in a Changing World, 4th Edition
30
Steps to Create a Structure Chart from a DFD Fragment (continued)
Add other modules Get input data via user-interface screens Read from and write to data storage Write output data or reports Add logic from structured English or decision tables Make final refinements to structure chart based on quality control concepts Systems Analysis and Design in a Changing World, 4th Edition
31
The Structure Chart for the Create New Order Program (Figure 10-15)
Systems Analysis and Design in a Changing World, 4th Edition
32
Combination of Structure Charts: Transaction and Transform Analysis (Figure 10-16)
Systems Analysis and Design in a Changing World, 4th Edition
33
Evaluating the Quality of a Structure Chart
Module coupling Measure of how module is connected to other modules in program Goal is to be loosely coupled Module cohesion Measure of internal strength of module Module performs one defined task Goal is to be highly cohesive Systems Analysis and Design in a Changing World, 4th Edition
34
Examples of Module Cohesion
Systems Analysis and Design in a Changing World, 4th Edition
35
Module Algorithm Design—Pseudocode
Describes internal logic of software modules Variation of structured English that is closer to programming code Syntax should mirror development language Three types of control statements used in structured programming Sequence – sequence of executable statements Decision – if-then-else logic Iteration – do-until or do-while Systems Analysis and Design in a Changing World, 4th Edition
36
Module Algorithm Design—Pseudocode (Cont.)
A simple example of the logic of the payroll system. Payroll program DoUntil No more time cards Call Enter time cards Call Calculate amount Call output payroll End Until Systems Analysis and Design in a Changing World, 4th Edition
37
Integrating Structured Application Design with Other Design Tasks
Structure chart must be modified or enhanced to integrate design of user interface, database and network. Are additional modules needed? Does the pseudocode in modules need modification? Are additional data couples needed to pass data? Structure charts and system flowcharts must correspond to planned network architecture Required protocols, capacity, and security
38
Three-Layer Design Three-layer architecture
View layer, business logic layer, and data layer Structure charts and system flowcharts describe design decisions and software structuring Employs multiple programs for user interface, business logic, and data access modules Modules in different layers communicate over real-time links using well-defined protocols Systems Analysis and Design in a Changing World, 4th Edition
39
System Flowchart Showing Three-Layer Architecture for Customer Order
Systems Analysis and Design in a Changing World, 4th Edition
40
Structure Chart Showing Three-Layer Architecture for Create New Order (Figure 10-20)
Systems Analysis and Design in a Changing World, 4th Edition
41
Summary For traditional structured approach to systems design, primary input is data flow diagram DFD is enhanced by adding system boundary Designer describes processes within each DFD boundary using one or more structure charts Structure charts developed using Transaction analysis – multiple transaction types Transform analysis – single transaction from input to output Systems Analysis and Design in a Changing World, 4th Edition
42
Summary (continued) Structure charts may be based on three-layer architecture Modules will be clearly identified by layer Structure chart may be decomposed if layers execute on multiple systems Structured design may also include System flowcharts to show data movement Module pseudocode to describe internal logic of structure chart module Systems Analysis and Design in a Changing World, 4th Edition
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.