Algorithm pseudo code and flow charts , Electrical Engineering

Assignment Help:

Algorithm  pseudo code and flow  charts

Algorithm:   before  writing  the program  the programmer must understand  the problem  for which are  program is to  be written. Then  algorithm can be  written. An algorithm is the step  wise  program  definition written  in simple  and precise language  in which  the large  problems  is broken  into unbreakable  steps.  So that  each step can be easily  converted into programming  statement. For writing  the algorithm  knowledge of computer language is not required . an  algorithm has followings  features.

a.Finiteness : must  terminate  after a fixed number of steps.

b.Definiteness -  each step must be  precisely defined.

c.Effectiveness - all operations used in  algorithm should be the  basic  operations and  can be  converted  into  programming  instructions directly.

For  example  if we  want to write  a program  to add   two  numbers.  The algorithm for it  which is independent  of any  programming  language  may be  written  as follows:

Algorithm to add  two  numbers:

a.Read  first  number.

b.Read  second number.

c.Add numbers and  save the sum.

d.Display results .

Pseudo code :  An  algorithm  may be  written  in simple  language  as initially we may not  know  which  programming language will be  used to  implement the  algorithm. Some  times  it may  be difficult to convert an algorithm into the  computer  program. Hence an  intermediate language, which is in  between  teh algorithm and actual programming language is used. This language is called pseudo code.

For example  the algorithm written above to add two  numbers may be  converted to the  pseudo  code  as follows if programming is to  be done  in assembly  language of 8085 .

A-FIRST NO

B-SECOND NO

A-A+B

DISPLAY PORT  - A (SUM)

Flow chart : flow  chart is  the  graphical  representation of the algorithm which  shows the flow of  program  execution. It uses  various  symbols  to represent different  processors. The  symbols which  are used  in the book  are explained  below.


Related Discussions:- Algorithm pseudo code and flow charts

What do you mean by fm stereo, Q. What do you mean by FM Stereo? IT  sh...

Q. What do you mean by FM Stereo? IT  shows the block diagram of an FM stereo transmitter and an FM stereo receiver. The following notation is used: • f L (t), fR(t): Left a

What is open-loop voltage gain, Q. What is Open-loop voltage gain? The ...

Q. What is Open-loop voltage gain? The op amp amplifies the difference vd between the voltage on the noninverting (+) terminal and the inverting (-) terminal; see Figure. The t

Calculate the evaporation using penmans method, (a) Average rainfall during...

(a) Average rainfall during the month of January is found to be R mm. A Class A pan evaporation recorded an average of [7 + ( R /100)] mm/day near an irrigation reservoir. The av

Express the instantaneous power, Q. On a per-phase basis, let v = √2 V cos ...

Q. On a per-phase basis, let v = √2 V cos ωt and i = √2 I cos (ωt - θ). (a) Express the instantaneous power s(t) in terms of real power P and reactive power Q. (b) Now consid

Ac machines, AC Machines: We have learnt the fundamental concepts of t...

AC Machines: We have learnt the fundamental concepts of the transformer, induction motors and special type fractional kilowatt (kW) machines. In the section of transformer you

Magnetic permeability and the b/h curve, Magnetic permeability and the B/H ...

Magnetic permeability and the B/H curve To measure the relationship between field strength H and flux density B for a material, a sample is made into a closed ring and a magne

Find transmission bandwidth required of telemetry system, Find the transmis...

Find the transmission bandwidth required of a data telemetry system that is to handle three different signals with bandwidths W 1 = 1 kHz, W 2 = 2 kHz, and W 3 = 3 kHz, by emplo

Cro, Diagram and explanation of cro

Diagram and explanation of cro

Vhdl, Im doing my final year project and Im stuck in vhdl coding. The main...

Im doing my final year project and Im stuck in vhdl coding. The main mission of this project is to design and build a tap changer which is going to be fitted to power transformers

What is resistivity, What is resistivity? Resistivity of a material ma...

What is resistivity? Resistivity of a material may be explained as the resistance of the material having unit length and also unit cross sectional area. Unit of it is ohm-m.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd