Lasalle Demo

19
Flowcharting Essentials Flowcharting Essentials A Guide to the Fundamentals of Data and A Guide to the Fundamentals of Data and Process Diagrams Process Diagrams

Transcript of Lasalle Demo

Page 1: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 1/19

Flowcharting EssentialsFlowcharting EssentialsA Guide to the Fundamentals of Data andA Guide to the Fundamentals of Data and

Process DiagramsProcess Diagrams

Page 2: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 2/19

What is a Flowchart?

A diagram that depicts the

flow of a program.

Flowcharts are used in

designing and documentingcomplex processes.

Page 3: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 3/19

Basic Flowchart Symbols

Notice there are three types of symbols in this flowchart:

rounded rectangles

parallelograms

a rectangle

Each symbol represents adifferent type of operation.

START

Display message

³How many hours did

you work?´

Read Hours

Display message ³How

much do you get paid

per hour?´

Read Pay Rate

Display Gross Pay

END

Rounded

Rectangle

Parallelogram

Rectanglewith Lines

Rounded

Rectangle

Multiply Hours by Pay

Rate. Store result inGross Pay.

(C)opyright 2003 Scott/Jones Publishers

Page 4: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 4/19

Basic Flowchart Symbols

Terminals represented by rounded rectangles

indicate a starting or ending point

(C)opyright 2003 Scott/Jones Publishers

Terminal

Terminal

START

Display message

³How many hours did

you work?´

Read Hours

Display message ³How

much do you get paid

per hour?´

Read Pay Rate

Display Gross Pay

END

Multiply Hours by Pay

Rate. Store result inGross Pay.

Page 5: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 5/19

Basic Flowchart Symbols

Input/Output Operations represented by parallelograms

indicate an input or output

operation Input/Output

Operations

START

Display message

³How many hours did

you work?´

Read Hours

Display message ³How

much do you get paid

per hour?´

Read Pay Rate

Display Gross Pay

END

Multiply Hours by Pay

Rate. Store result inGross Pay.

(C)opyright 2003 Scott/Jones Publishers

Page 6: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 6/19

Basic Flowchart Symbols

Processes represented by rectangles

indicates a process such as amathematical computation or

variable assignment

(C)opyright 2003 Scott/JonesPublishers

Process

START

Display message

³How many hours did

you work?´

Read Hours

Display message ³How

much do you get paid

per hour?´

Read Pay Rate

Display Gross Pay

END

Multiply Hours by Pay

Rate. Store result inGross Pay.

Page 7: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 7/19

Basic Flowchart Symbols

 A rectanglerepresents an activityto be completed.

 A diamond representsa decision to be

made.

 A terminator shape or a circle represents thebeginning or end of aprocess.

This shape representssomething that isdocumented.

 A rectangle with linesrepresents a pre-

defined process

 An arrow indicates the

process flow.

ACTION

DECISION

START/END

DOCUMENT

PROCESS

ARROW

Page 8: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 8/19

Four Flowchart Structures

Sequence

Decision

Repetition Case

Page 9: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 9/19

A series of actions are performed in sequence

Sequence Structure

Page 10: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 10/19

One of two possible actions is taken, depending on acondition.

Decision Structure

Page 11: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 11/19

Decision Structure

A new symbol, the diamond, indicates a yes/no question. If the answer to the question is yes, the flow follows one path.If the answer is no, the flow follows another path

YESNO

Page 12: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 12/19

Repetition Structure

A repetition structure represents part of the program thatrepeats. This type of structure is commonly known as a loop.

Page 13: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 13/19

Case Structure

One of several possible actions is taken, dependingon the contents of a variable.

Page 14: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 14/19

Case Structure

The structure below indicates actions to performdepending on the value in years_employed.

CASE

years_employed

1 2 3 Other 

bonus =100

bonus =200

bonus =400

bonus =800

Page 15: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 15/19

Sometimes a flowchart will not fit on onepage.

A connector (represented by a small circle)

allows you to connect two flowchartsegments.

Connectors

 A

Page 16: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 16/19

Connectors

The A connectorindicates that the secondflowchart segment beginswhere the first segmentends.

A

A

Page 17: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 17/19

Combining Structures

Structures are commonly combined to create morecomplex algorithms.

The flowchart segment below combines a decisionstructure with a sequence structure.

YES

Page 18: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 18/19

This flowchart segmentshows two decisionstructures combined.

Combining Structures

NO YES

Page 19: Lasalle Demo

8/6/2019 Lasalle Demo

http://slidepdf.com/reader/full/lasalle-demo 19/19

Flowcharting

Steps to Get Started:1. First identify the purpose of the

process.

2. Then identify the people or

groups involved in the process.

3. Work through the steps in theprocess flow. Move them aroundas necessary to reflect the

process.4. Once you have all the steps identified and appropriately

oriented on the chart pad, add the arrows to indicate thework flow.