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

Cpld design project, 1) Study the CPLD Design Project Brief to gain an unde...

1) Study the CPLD Design Project Brief to gain an understanding of the project, and the System Specification, Circuit Description, Pre-processing and Post-processing Requirements f

Meter field testing - sealing points, Meter Field Testing - Sealing Points ...

Meter Field Testing - Sealing Points The meter seal should be tamper proof. The consumer should be briefed about seals. The sealing of all metering systems should be completed

Define smoothing the output, Define Smoothing the Output? The output of...

Define Smoothing the Output? The output of a DAC is stepped, such as the analog waveforms which were sampled and held. This stepped, or staircase effect is a distortion, and it

Rc phase shift, what is the equation for rc phase shift oscillator?

what is the equation for rc phase shift oscillator?

Overview of decimal number system, Q. Can you give some Overview of Decimal...

Q. Can you give some Overview of Decimal Number System? The Decimal Number System uses base 10 and It includes the digits from 0 through 9. The weighted values for each positio

Determine the voltage across each resistor, For the circuit of Fig: (i) ...

For the circuit of Fig: (i) using Kirchoff's Laws , find all the currents (ii)  determine the voltage across each resistor and check that all loops comply with KVL (iii

Determine the power angle delta, A synchronous motor has the following para...

A synchronous motor has the following parameters per phase. E=2kv, Eo=5kv, X2=3ohms, and I=700amps. Draw the phasor diagram and determine (a) power angle delta, (b) active po

CONTORL SYSTEMS, WHAT ABOUT THE STABILITY IF WE USE COMPENSATOR

WHAT ABOUT THE STABILITY IF WE USE COMPENSATOR

Port address - address bus , Port Address The port  address  is of 8 bi...

Port Address The port  address  is of 8 bit  it is range from 00H  to FFH. It means  there may be total  i 256 input  ports and 256  output  port which can be accessed by 8085

Factors affecting frequency response of an amplifier, Q. What is their rela...

Q. What is their relation with gain? What are the factors affecting frequency response of an amplifier? Some amplifiers should be "flat" across a band of frequencies. In other

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