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

Which property of material allows it to drawn out in wires, Property of mat...

Property of material which allows it to be drawn out into wires is (A) Ductility.                                    (B) Solder ability. (C) Super conductivity.

Explain the conductyvity of atom with four valence electrons, Atoms with fo...

Atoms with four valence electrons are good conductors. This statement is true or false. Ans:  Atoms are good conductors with four valence electrons. This statement is false.

Determine the h-parameters for the network., Q. A negative impedance conver...

Q. A negative impedance converter circuit shown in Figure is used in some applications where inductors cannot be utilized or where negative resistance is beneficial. (a) Determi

Low-pass electronic filter, Low-pass electronic filter: The capacitors...

Low-pass electronic filter: The capacitors and inductors are the reactive elements of the filter. The number of elements ascertains the order of the filter. In this situation,

Multiprocessing - many processors many users many programs , Multiprocessin...

Multiprocessing - Many Processors Many users Many Programs  Multiprocessing or also  called  distributed processing system  provides solution to problems of above  timesharing

Requirement specification for the monitor and alarm system, Prepare a User ...

Prepare a User Requirement Specification for the monitor and alarm system. User Requirements Specification should be written in a clear and unambiguous manner to state: • The

Octal to binary conversion, Octal to binary Conversion Conversion form ...

Octal to binary Conversion Conversion form  octal to binary  is the reverse  of this process. Express each  octal digit  in three bit  binary  equivalent. Ex. Convert 3576

Compute the ensemble mean and standard deviation, Write three m ?les to gen...

Write three m ?les to generate M ensemble members of length N, for the following three random processes: i) function v=rp1(M,N); a=0.02; b=5; Mc=ones(M,1)*b*sin((1:N)*p

Explain effect of frequency of applied electric field, Explain effect of fr...

Explain effect of frequency of applied electric field. If an external electric field is applied, the distance among charges that is related to chemical bonding keeps constant i

Difference equation of transfer function, Now you have to digitally impleme...

Now you have to digitally implement this circuit. Compute a difference equation which if you implement will behave exactly like this circuit.

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