Wednesday 14 November 2018

PSEUDO CODE

 Today we discussed..... 

  Pseudo code

  • solving a problem with familiar  English and some simple mathematics

























Important parts of a pseudo code

  • inputs and outputs

  • variable

  • assigning

  • selection

  • repetition

 

Inputs

Insert something which are the inputs of our problem
eg-
     numbers, name, price and marks 

Outputs

 It will be solution or conclusion of our problem
eg- 
     1+5
     output = 6
  

 Variable 

Introduce unknown letter of English for reduce our time when solving the problem
eg-
    y, x, m, a, 

 

Assigning

Allocate a value in a time  for our purpose 
eg-
   a for 5 -  a=5 , n for name -  n=mino , x for age - x=36
 

Selection

if we want a information to our problem. when we filtering some data 
     eg-

  selection of uki batch-4 which is the problem  it's output will be these (mithu,abi,sajee,mino and kiriz ) are the qualify students for uki batch - 4


Repetition


if repeating our input with some different variable and or same variable while  Problem will be solved it's called repetition.
  eg-
           uki select 20 students for batch4 after 6months it will be repeated 
      and then uki's problem will be solved who finished there activities



0 comments:

Post a Comment