Flow chart & Psudo code
A flowchart is a type of diagram that represents an algorithm or process,
showing the steps as boxes of various kinds, and their order by connecting them with arrows.
we can do flow chart in 3 ways
There are some tools are used to convert algorithms into computer programs:
Flowchart - Graphically depicts the logical steps to carry out a task and shows how the steps relate to
each other.
Pseudocode - Uses English-like phrases with someVisual Basic terms to outline the program.
basic step for psudo code:
begin →input→process→/decision/→output→end
⧫ lets see the the psudo code for above picture:
input lamp
process lamp dosent work
if lamp not plug in then
print(plugin)
else
if the lamp burned then
print(replace bulb)
else print(repair)
end if
end
Flowchart - Graphically depicts the logical steps to carry out a task and shows how the steps relate to
each other.
Pseudocode - Uses English-like phrases with someVisual Basic terms to outline the program.
begin →input→process→/decision/→output→end
⧫ lets see the the psudo code for above picture:
input lamp
process lamp dosent work
if lamp not plug in then
print(plugin)
else
if the lamp burned then
print(replace bulb)
else print(repair)
end if
end
No comments:
Post a Comment