flowcharting and pseudocoding

14
Lesson 2 FLOWCHARTING AND PSEUDOCODING

Upload: sara-corpuz

Post on 08-Feb-2015

1.733 views

Category:

Business


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Flowcharting and pseudocoding

Lesson 2Lesson 2FLOWCHARTING

AND PSEUDOCODING

FLOWCHARTING AND

PSEUDOCODING

Page 2: Flowcharting and pseudocoding

Flow Chart• A graphic representation of the

successive steps in a procedure that system, which usually uses symbols that are interconnected with lines to show sequence or process

Pseudocode• A readable description of a

computer program in textual form. It is usually used as a detailed step in the process of developing a program.

Let x = 1st num

Page 3: Flowcharting and pseudocoding

Input/Output

• Indicates any function of an input/output device making data available for processing or causing information available for use.

Page 4: Flowcharting and pseudocoding

Decision

• Appoints the program where a comparison is to be made and alternative processing is to occur based upon the results of the comparison.

Page 5: Flowcharting and pseudocoding

Flowlines

• Indicates direction of a data.

Page 6: Flowcharting and pseudocoding

Preparation

• Used in declaring and initializing identifiers or variables that will be used in the programs.

Page 7: Flowcharting and pseudocoding

Processing

• Represents one or more instructions that perform a processing function for the program. Ex. Addition, subtraction, multiplication, division.

Page 8: Flowcharting and pseudocoding

On page connector

• Indicates an entry form or an exit to another part of the program flowchart. It is also used to indicate the termination of a comparison operation.

Page 9: Flowcharting and pseudocoding

Terminal

• This symbol documents the beginning or end of a program.

Page 10: Flowcharting and pseudocoding

Off page connector

• This symbol indicates continuation to or from another page.

Page 11: Flowcharting and pseudocoding

Annotation Symbol

• This symbol is used when an additional description is needed.

Page 12: Flowcharting and pseudocoding

Pseudocode Language • Accept – allow data• Close – terminating a program• Compute – mathematical computation• Declare – defining various identifiers• Display – displaying contents• Entry – marking the beginning• Exit – marking the end• If – comparing contents• Move – to copy or moved data• Perform – perform procedure• Start – marking the beginning• Stop – terminating the program execution• Write – for copying the content

Page 13: Flowcharting and pseudocoding

Pseudocode Example Start

FN = First NameLN = Last NameNum_St = number and streetCity = CityTel = Telephone numberInput FN, LNInput Num_St, CityInput TelPrint FN, LN, Num_St, City, Tel

End

Page 14: Flowcharting and pseudocoding