1 / 9

# Flowchart - PowerPoint PPT Presentation

Flowchart. Flowchart:. It is a diagram consists of symbolic block that represents the algorithm step by step Symbols of flowchart: Terminal (start, stop) Input / output Processing Flow: concerned with direction Decision: for logic comparison Connector Off-page connector. start.

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about ' Flowchart' - shira

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

### Flowchart

It is a diagram consists of symbolic block that represents the algorithm step by step

Symbols of flowchart:

• Terminal (start, stop)

• Input / output

• Processing

• Flow: concerned with direction

• Decision: for logic comparison

• Connector

• Off-page connector

New_mark = mark+5

• print name, new_mark

stop

Flowchart:

Ex: draw the flowchart for this algorithm:

• Begin

• startstopRead name, markprint name, new_markNew_mark = mark+5

• input name, mark

• new_mark = mark+5

• print name, new_mark

• End

studentcount =1

A

studentcount <= 10

stop

new_mark = mark + 5

print name, new_mark

studentcount = studentcount +1

A

Flowchart:

Ex: draw the flowchart for this algorithm:

• Begin

• studentcount =1

• if studentcount > 10 then Stop

else

• calculate new_mark = mark + 5

• print name, new_mark

• studentcount = studentcount +1

• goto step 3

yes

L< 0

x2 –y + x

No

yes

L=0

2x + y

No

(x / y) + 10

Write F

stop

Flowchart:

Ex:

Draw a flowchart to compute:

F = x2 –y + x L<0

2x + y L=0

(x / y) + 10 L>0

• start

• if (L<0) then

F = x2 –y + x

else

if (L=0) then

F = 2x + y

else

F = (x / y) + 10

• write F

• stop

start

yes

No

I<=n

yes

Max<x

Max = x

stop

No

Max=x

Min=x

yes

Min>x

Min = x

No

I = 2

I = I +1

b

A

b

Flowchart:

Ex:

Trace the following flowchart to find the value of max and min variable for 4 numbers order as follows (x = 4, 2, 1, 3)?

Ex:

Read name for student, when name="xxx" stop the program, if name does not equal "xxx" then compute the grade of every student. Every student has five courses. The average for the student courses has to be computed and there by the grade is given.

Avg > = 90 ------------------------> grade = 'A'

80 < =Avg < 90 ------------------------> grade = 'B'

70 < =Avg < 80 ------------------------> grade = 'C'

60 < =Avg < 70 ------------------------> grade = 'D'

Avg < 60 ------------------------> grade = 'F'

Sol:

• Start

• while (name != "xxx") do

• begin

• total = 0

• for count = 0 to 5 do

• begin

• total = total + mark

• end

• avg = total / 5

• if ( avg >= 90) then

else

if ((avg >=80) and (avg < 90)) then

else

if ((avg >=70) and (avg < 80)) then

else

if ((avg >=60) and (avg < 70)) then

else

• end

• stop

start

C

yes

total= 0

Count= 0

avg > = 90

No

B

((avg >=80) and (avg < 90))

yes

Name = "xxx"

yes

No

stop

No

total= total + mark

((avg >=70) and (avg < 80)

yes

count= count + 1

yes

No

count < 5

No

B

avg = total / 5

((avg >=60) and (avg < 70))

yes