Wednesday, May 15, 2019

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

  • ⇾Sequence  
  • ⇾Selection   (if conditions)
  • ⇾Repitation  (while loop, for loop)



eg:



Psudo code


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


No comments:

Post a Comment

Express

In this tutorial, we will also have a look at the express framework. This framework is built in such a way that it acts as a minimal an...