+ All Categories
Home > Documents > Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY...

Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY...

Date post: 13-Jan-2016
Category:
Upload: kenneth-hunter
View: 218 times
Download: 4 times
Share this document with a friend
28
Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth
Transcript
Page 1: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Program DesignSYSTEMS ANALYSIS AND DESIGN, 6 T H EDITION

DENNIS, WIXOM, AND ROTH

1Roberta M. Roth

Page 2: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Learning Objectives Be able to revise logical DFDs into physical DFDs.

Be able to create a structure chart.

Be able to write a program specification.

Be able to write instructions using pseudocode.

Become familiar with event-driven programming.

2

Page 3: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Moving from Logical to Physical Process ModelsMAKING IMPLEMENTATION DECISIONS

3

Page 4: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

The Physical Process Model Show the implementation details and explain how the system will work, including

◦ Actual, specific technology◦ Format of information◦ Human interaction with system

4

Page 5: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

The Physical DFD Contains the same components as the logical DFD The same rules pertaining to balance and decomposition apply Contains additional details describing how the system will be built

5

Page 6: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Steps to Create the Physical DFD Add implementation references Draw a human-machine boundary Add system-related data stores, data flows and processes Update data elements in the data flows Update the metadata in the CASE repository

6

Page 7: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Contrasting a Logical and Physical DFDLOGICAL DFD PHYSICAL DFD

7

Page 8: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Designing Programs

8

Page 9: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

Key Definitions Program design - creating instructions for the programmers

The top-down, modular approach - begin with the “big picture” and gradually add detail

Program design document – all structure charts and specifications needed by programmers to implement the system

Page 10: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

The Structure Chart Important program design technique

Shows all components of code in a hierarchical format◦ Sequence◦ Selection◦ Iteration

Illustrates the organization and interactions of the different program modules

10

Page 11: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Example Structure Chart

11

Page 12: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Structure Chart Elements

1.2Calculate

Current GPA

Module

1.1Get Student

Grade Record

Library Module

Loop

Conditional Line

Control Couple

Data Couple

OffPage

Onpage

12

Page 13: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Building the Structure Chart Processes in the DFD tend to represent one module on the structure chart◦ Afferent processes – provide inputs to system◦ Central processes – perform critical system operations◦ Efferent processes – handle system outputs

The DFD leveling can correspond to the structure chart hierarchy

13

Page 14: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Types of Structure Charts Transaction structure – control module calls subordinate modules, each of which handles a particular transaction

◦ Few afferent processes◦ Many efferent processes◦ Higher up levels of structure chart◦ Concerned with coordinating the production of outputs

14

Page 15: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Transaction Structure

15

Page 16: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Types of Structure Charts, con’t. Transform structure – control module calls several subordinate modules in sequence Each subordinate performs a step in a process that transforms an input into an output◦ Many afferent processes◦ Few efferent processes◦ Lower levels of structure chart◦ Concerned with using inputs to create a new output

16

Page 17: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Transform Structure

17

Page 18: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Steps in Building the Structure Chart1. Identify top level modules and decompose them into lower levels

2. Add control connections

3. Add couples

4. Review and revise again and again until complete

18

Page 19: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Design Guidelines High quality structure charts result in programs that are modular, reusable and easy to implement.

Measures include:◦ Cohesion◦ Coupling◦ Appropriate levels of fan-in and fan-out

19

Page 20: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Types of Cohesion Functional

Sequential

Communicational

Procedural

Temporal

Logical

Coincidental

20

Good

Bad

Page 21: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Factoring Process of dealing with “low” cohesion

Separates tasks into different modules

Reduces use of control flags

21

Page 22: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Types of Coupling Data

Stamp

Control

Common

Content

22

Good

Bad

Page 23: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Fan-in High fan-in preferred Promotes reuse of subordinate modules

1.1CalculateEmployee

Salary

1.2Print

EmployeeRoster

1.3CalculateBenefits

1.1.2Read

EmployeeRecord

1.1CalculateEmployee

Salary

1.2Print

EmployeeRoster

1.3CalculateBenefits

1.1.1Read

EmployeeRecord

1.2.1Read

EmployeeRecord

1.3.1Read

EmployeeRecord

Low fan-in not preferred

23

Page 24: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Quality Checklist1. Library modules have been created where ever possible

2. The diagram has a high fan-in structure

3. Control modules have no more than 7 subordinates

4. Each module performs only one function (high cohesion)

5. Modules sparingly share information (loose coupling)

6. Data couples that are passed are actually used by the accepting module

7. Control couples are passed from “low to high”

8. Each module has a reasonable amount of code associated with it

24

Page 25: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Program SpecificationsINSTRUCTIONS TO THE PROGRAMMER

25

Page 26: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

Program Specification Content No standard approach

Include program information

Note events that trigger actions

List inputs and outputs

Include pseudocode

Provide additional notes and comments as needed

Page 27: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Sample Pseudocode

27

Page 28: Program Design SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED. 1 Roberta M. Roth.

© 2015 JOHN WILEY & SONS, INC. ALL RIGHTS RESERVED.

Sample Program Specification

28


Recommended