© 2003 mcgraw-hill australia pty ltd, ppts t/a accounting information & reporting systems by a....

23
© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye Watson. 3-1 chapter 3 3 Documentation techniques and databases Learning objectives To learn about data flow diagrams (DFDs) and the symbols used in them. To understand a context diagram and its decomposition. To understand the standard symbols used in flow charts. To describe and construct different types of flow charts. To understand the advantages of flow charts over written descriptions. To be able to compare and contrast DFDs and flow charts. To understand decision tables and their relevance to programming. To learn about the construction of E-R diagrams as a basis for databases.

Upload: rachel-tucker

Post on 24-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-1

chapter

33Documentation techniques and

databasesLearning objectives

– To learn about data flow diagrams (DFDs) and the symbols used in them.–To understand a context diagram and its decomposition.–To understand the standard symbols used in flow charts. –To describe and construct different types of flow charts.–To understand the advantages of flow charts over written descriptions.–To be able to compare and contrast DFDs and flow charts.–To understand decision tables and their relevance to programming.–To learn about the construction of E-R diagrams as a basis for databases.

Page 2: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-2

key termskey terms• attribute• binary notation• bit• byte• context diagram• data dictionary• data flow• data flow diagram• data model

• data store• data structure• data warehouse• database• database management

system• decision table• decomposition of a data

flow diagram

Page 3: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-3

key terms (cont.)key terms (cont.)• documentation• entity• E-R diagram• flow charts• flow line• foreign key• lead time• primary key

• relational database model

• relationship• schema• secondary key• subschema

Page 4: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-4

Data flow diagramsData flow diagrams• Graphically describe the flow of data within

an organisation• Composed of four basic elements

represented by standard symbols:

Page 5: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-5

Basic data flow diagramBasic data flow diagram

Page 6: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-6

Data flow diagram for customer Data flow diagram for customer delivery datesdelivery dates

Page 7: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-7

Context diagramsContext diagrams• Show major data flows into and out of a system• Describe each subsystem as a process showing

interrelationship of those subsystems and their relationship to main system

Page 8: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-8

Context diagramsContext diagrams• Depict logical flow of data in summary form• The starting point for studying any system• Depict the system at its highest level• Referred to as level zero data flow diagrams

Page 9: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-9

Flow chartsFlow charts• Document physical flows determined after

logical data flows have been documented using data flow diagrams

Page 10: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-10

Flow chart symbolsFlow chart symbols

Page 11: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-11

Advantages and disadvantages of Advantages and disadvantages of flow chartsflow charts

• Advantages:– Enable any system to be represented in easily understandable

manner– Overall picture of system easily seen– Highlight relationship among different parts of the system

• Disadvantages:– Creation can be time-consuming– Numerous symbols can be confusing– Process may not be completely representable using symbols

Page 12: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-12

System flow chartsSystem flow charts• Show the relationship between input,

processing and output including data, documents and storage

• Represent the relationship between various processes

Page 13: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-13

System flow chartSystem flow chart

Page 14: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-14

Document flow chartsDocument flow charts• Emphasise the flow of documents between various people,

groups and departments of an organisation

Page 15: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-15

Program flow chartsProgram flow charts• Show the detailed steps of a computer program• Show the logic and processing steps used to develop a

computer program

Page 16: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-16

Decision tablesDecision tables• List the decision logic of a program flow chart in tabular form• Constructed with two main columns and two rows:

– First row is further divided into a number of rows of conditions– Second row is further divided into a number of rows of actions

Page 17: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-17

Decision tablesDecision tables• The decision table tells us the following:

– if stock is not available and floor stock is not being sold, collect 10% advance

– if stock is available but delivery is not within three days, collect 10% advance

– if stock is available and delivery within three days, collect full value of sale

– if stock is not available but floor stock is being sold within three days, collect full value of sale

– if stock is not available but floor stock is being sold after three days, collect 10% advance

Page 18: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-18

DatabasesDatabases• Database:

– the actual physical repository for an organisation’s data• Database management system (DBMS):

– a computer program that allows authorised users to update files, select and retrieve data

– acts as an interface between database and application programs

• Data structure:– the technique of physically arranging records in a

database

Page 19: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-19

DatabasesDatabases• Data warehouse:

– database constructed for ease of use and ad hoc queries

• Data dictionary:– a document that describes each data element in the

database

Page 20: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-20

Types of database modelsTypes of database models• Database management systems use different

structures depending on the needs of the particular system:– Hierarchical database model– Network database model– Relational database model

Page 21: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-21

Hierarchical database modelHierarchical database model• Also called a tree model, occurs when data is

organised in top-down structure in a one-to-many relationship

Page 22: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-22

Network database modelNetwork database model• An extention of the hierarchical model but takes the

form of a many-to-many relationship

Page 23: © 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye

© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides

prepared by Kaye Watson.3-23

Relational database modelRelational database model• Logical structure that views a database as a

collection of two-dimensional tables called database tables