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

Stop and wait flow control protocol, (a) Explain what asynchronous transmis...

(a) Explain what asynchronous transmission is and give two advantages and two disadvantages of using this type of transmission. (b) One of the goals of multiplexing is efficienc

Transformers, What is the difference between “Insulating,” “Isolating,” and...

What is the difference between “Insulating,” “Isolating,” and “Shielded Winding” transformers? Can Acme Transformers be reverse connected? . Can Transformers develop Three Phase po

What is the working of sensor in robotics, (a) What is the working of senso...

(a) What is the working of sensor in Robotics ? (b) Define the following : (i) Proximity Sensor (ii) Tactile Sensors (iii) Optical Sensor. (c) What is an End Effecto

Evaluate the thickness of the shell plate, A cylindrical shell with flat en...

A cylindrical shell with flat ends is of 1.5 m Internal diameter and 4 m length. It is subjected to an internal pressure of 300 N/cm 2 . The principal stress is not to exceed 15 K

Explain the working of a bootstrap sweep generator, Q. Use necessary circui...

Q. Use necessary circuit and waveforms to explain the working of a Bootstrap sweep generator The bootstrap circuit illustrated in figure given below is a commonly used method f

Digital transmission on fading multipath channels, Digital Transmission on ...

Digital Transmission on Fading Multipath Channels We have discussed thus far digital modulation and demodulation methods for the transmission of information over two types of c

Define electrical energy, Electrical energy If the power is measured in...

Electrical energy If the power is measured in watts and the time in seconds then the unit of energy is watt- seconds or Joules.

Name 5 different addressing modes, The five addressing modes are given belo...

The five addressing modes are given below: Immediate, Register, Direct, Implied addressing modes           Register indirect,

Illustrate output-rate control, Q. Illustrate Output-rate control? A sy...

Q. Illustrate Output-rate control? A system is said to have output-rate damping when the generation of the output quantity in some way ismade to depend upon the rate atwhich th

Required conditions for connecting two transformers, Q. Required Conditions...

Q. Required Conditions for connecting two transformers in parallel? Ans: a) Voltage rating should be same b) Per unit impedance should be same c) Phase sequence should

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