Thursday, April 20, 2017

Pseudo-code & Flow-chart

19.04.2017 - 20.04.2016

Next New Chapter Pseudo-code and Flow-chart.................

Algorithm 

  • Its a set of Instructions that are process in order to solve problems by the Machines.
  • If We want to create or develop a program we need to write an Algorithm to set an outline view
  • We can use Pseudo-code and Flowchart to create Algorithms.


Pseudo-code

Pseudo-code is a fake code that shows roughly how a program to be work.

Programs mostly have Pseudo-code to describe or to understand about that programs

Writing Style of Pseudo-code is depends on the Writer.


An Example for Pseudo-code


Main Functions in Pseudo-code ↴
  • A Variable
    • A Symbol that can assign into different Values
    • We can to 2 things with a variable
      1. Assigning Operation
        • X=3
        • Assign 3 to X
        • Set X equal to 3
      2. Read Operation
  • Input / Output
    • Input - Read / Get / Input
    • Output - Write / Display / Output
  • Sequence
    • Set of Instructions which process in an Order.
  • Selection (It works on Conditions)
  • Repetition 

A Question to explain Pseudo-code...

↦ Write Pseudo-code to print all multiple of 5 between 1 to100
    (including 1 and 100)
   
        Start
        y=1
        While multi<=100
        multi=5*y
        Print multi
        y=y+1
        End





Next Flow-chart........................

A Flow-chart is a Symbolic Representation of a Process.

Every step of process is represented by different type of Shapes and every shape contains some instructions to complete the algorithm.
Every Processing steps connect with Data Flow lines.

Use Of Flow-chart

easy to analyze, design ,manage a Algorithm

The most  common flow chat symbols 

1.Terminate
    Indicates the start and end of process

2.Process
    Represents the normal process

3.Decision

4.Connector

5.Input or Output data

Main Symbols



Basically Flow-chat has 3 Control Structures
  1. A Sequence flow
  2. Selection
  3. Repetition / Loop

Basic Flow chart



In During my search to Flow-chart I found some Webpages that are help to make flow-chart very easily.
It has all the symbols of Flow-chat with colerful and stylish. If u  want to check plz follow the link below...




1 comment:

My First Day with Uki DN Cohort 1

 "Hello WORLD!"