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

Requirement of a hybrid in telephone networks, Q. What is the requirement o...

Q. What is the requirement of a hybrid in telephone networks? How does it work? Ans: Digital exchanges require receive and transmit signals on separate two-wire circuits. Th

Electronic monitor and alarm system for an oil separator, This assignment i...

This assignment is to develop a User Requirements Specification for an electronic monitor and alarm system for an Oil Separator in Surface Water Drainage Systems. These separato

Short note on types of enclosure of machine, Q.   Write a short note on typ...

Q.   Write a short note on types of enclosure of machine. Sol.       The various types of d.c. machine :              (1) Magnetic frame or Yoke              (2)

Show maximum differential input voltage of amplifier, Q. Show Maximum Diffe...

Q. Show Maximum Differential Input Voltage of amplifier? This is the maximum value of differential input voltage v p - v n that can be applied without damaging the op amp.

Show equivalent circuit of a synchronous machine, Equivalent Circuit of a S...

Equivalent Circuit of a Synchronous Machine A review of the material about elementary synchronous machines is very helpful at this stage to recall the principles of operation f

Explain aas instructions in 8086 family, Explain AAS instructions in 8086...

Explain AAS instructions in 8086 family with example and their effect on flag. AAS: it is stands for ASCII adjust after subtraction; this is used to adjust the AX register l

Illustrate sources and loads, Q. Illustrate Sources and Loads? A source...

Q. Illustrate Sources and Loads? A source-load combination is represented in Figure. A node is a point at which two or more components or devices are connected together. A part

Ampere''s law, This is at the heart of the analysis of electromagnetics. It...

This is at the heart of the analysis of electromagnetics. It is based on a series of experiments conducted by the French scientist Ampere (1775 - 1836), in which the force between

State value of current flowing in the winding, The winding of an electromag...

The winding of an electromagnet has an inductance of 3H and a resistance of 15?. When it is connected to a 120 V d.c. supply, Determine: (a)  the steady state value of current f

Di disable interrupts instruction, DI Disable  Interrupts Instruction ...

DI Disable  Interrupts Instruction The interrupt enable  flip flop is reset and all the  interrupts of 8085 microprocessors  except  TRAP  are disabled . the  instruction  form

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