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

Name the elements related to capacitance, Elements related to capacitance ...

Elements related to capacitance a.  Electric field: Area that surrounds the electric charge or charges system where the enhancing and reducing of electric force exists.

Rectifiers - Rectifiers and inverters , Rectifiers As discussed  above...

Rectifiers As discussed  above the  purpose  of the  rectifier is to  convert the incoming  ac from a transformer or other ac  source  to some  form of  pulsating dc. That it i

Determine the total energy ?owing into the component, Q. The voltage at ter...

Q. The voltage at terminal a relative to terminal b of an electric component is v(t) = 20 cos 120πt V. A current i(t) =-4 sin 120πt A ?ows into terminal a. From time t 1 to t 2 ,

Find the characteristic impedance, (a) Now consider a typical open-wire tra...

(a) Now consider a typical open-wire transmission line with parameters of R = 14 /mi, L = 4.6 mH/mi, C = 0.01 µF/mi, and G = 0.3×10 -6 S/mi. If the line operates at 1 kHz, find t

Voltage quality standards - kpi, Voltage Quality Standards - KPI The t...

Voltage Quality Standards - KPI The term voltage quality (or power quality) is an umbrella concept for a variety of disturbances within a power system. The quality of delivere

Examples of attribute data relevant for a power utility, Examples of attrib...

Examples of attribute data relevant for a power utility: Examples of attribute data relevant for a power utility are given below. •          Consumer data such as categor

How transistor will be used as an amplifier, (a) How transistor will be use...

(a) How transistor will be used as an amplifier? (b) Give relation between α and β? (c) Show the biasing arrangement for the PNP transistor in common base configuration, so t

Explain the cylindrical or round rotors, Explain the Cylindrical or Round R...

Explain the Cylindrical or Round Rotors? All synchronous machines have a similar stator design and it is actually the rotor construction that makes them different. The rotor is

What is accelerator key, A keyboard shortcut for a command. For example, Ct...

A keyboard shortcut for a command. For example, Ctrl + Alt + Delete are an accelerator key for the task manager in Windows 95.

Explain time division switching, Explain time division switching? Tim...

Explain time division switching? Time  Division  Switching:   A  switching  element  can  be  shared  by  number  of concurrently  active  speech  circuits.  It is the princi

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