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

What do you mean by the term procedure, What do you mean by the term proced...

What do you mean by the term procedure? PROC: The PROC and ENDP directives specify the start and end of a procedure. Such directives force structure while the procedure is cle

Minimized circuit using or and and not gate, Given S(F) = A'B +'C'D + C'D +...

Given S(F) = A'B +'C'D + C'D +'A'B + 'A B + 'A 'C + 'A D + 'A C A. DRAW A MINIMIZED CIRCUIT USING ONLY OR AND NOT GATES (2 input gates) B. WRITE THE WIRE LIST Example of a

Find the meter reading assuming that the averaging is done, Q A residence i...

Q A residence is supplied with a voltage v(t) = 110√2cos120πt Vand a current i(t) = 10√2cos120πt A. If an electricmeter is used tomeasure the average power, find the meter reading,

Why do we cascade amplifiers, Q. Why do we cascade amplifiers? Why is RC co...

Q. Why do we cascade amplifiers? Why is RC coupling the most widely used coupling between 2 stages of a cascading amplifier? The voltage or power gain or frequency response obt

Calculate the power dissipated in the amplifier, For the amplifier circuit ...

For the amplifier circuit shown in Figure with R i ≅ ∞,R o ≅ 0,A = 10,R L = 100 , and v in = 1 V, calculate the power dissipated in the amplifier if the voltage at the power-s

Construct a truth table and get the minimum sop expression, Q. For the logi...

Q. For the logic circuit of Figure, construct a truth table and obtain the minimum SOP expression.

Tri state devices, Tri State Devices Tri  State  devices have three  st...

Tri State Devices Tri  State  devices have three  states logic 1  logic  0 and high  impedance. A tri state device ( Buffer/ Inverter) has three  lines output  enable as shown

Give some applications of german silver, Give some applications of German s...

Give some applications of German silver. German silver is an alloy of zinc, nickel and copper. German silver is used in electrical measuring instruments.

Choose compensating components for the circuit, Q. Figure gives the frequen...

Q. Figure gives the frequency-response graphs for a 709 op amp. Choose compensating components for the circuit to have a gain of 100 and a frequency response of up to 100 kHz.

Instruction size , Instruction size As we  have seen already  that eac...

Instruction size As we  have seen already  that each instruction has two parts Opcode ( Operation  Code) Which  tells  the types  of operation  to be  performed .

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