Write an algorithm and draw the flowchart to find sum of series of numbers. 

1 Answer

Answer :

Algorithim to find sum of series of numbers:

1. Initialize data segment

2. Initialize byte counter and memory pointer to read number from array.

3. Initialize sum variable to 0

4. sum=sum+number from array

5. If sum> 8 bit then goto step 6 else step 7

6. Increment MSB result counter

7. Increment memory pointer

8. Decrement byte counter

9. If byte counter=0 then step 10 else step 4

10. Stop

image

Related questions

Description : Write an algorithm to subtract two 16 bit numbers (With borrow) in 8086 microprocessor.

Last Answer : Algorithm for 16 bit numbers subtraction with borrow: 1. Load 0000H into CX register (for borrow) 2. Load the first number into AX(accumulator) 3. Load the second number into BX register 4. Subtract ... . Move data from AX(accumulator) to memory 8. Move data from CX register to memory 9. Stop

Description : Define memory segmentation. How memory segmentation is achieved in 8086? State advantages of memory segmentation.

Last Answer : Memory Segmentation: The memory in an 8086 microprocessor is organized as a segmented memory. The physical memory is divided into 4 segments namely, - Data segment, Code Segment, Stack Segment and Extra ... 16 bit size. 6) Programs and data can be stored separately from each other in segmentation.

Description : Enlist the features of 8085 microprocessor.

Last Answer : Features of 8085 microprocessor: 1. 16 address line so 216=64 Kbytes of memory can be addressed. 2. Operating clock frequency is 3MHz and minimum clock  frequency is 500 KHz. 3. On chip bus ... cycle TTL clock 10. Provide 2 serial I/O lines, so peripheral can be interfaced with  8085 μp

Description : Describe the functions of stack pointer and program counter of 8085. 

Last Answer : Stack pointer: 1. It is a 16 bit register which is used to store the address of topmost filled memory location of stack memory. 2. SP always points current top of stack. 3. If data is ... of memory and in 8085 the address of memory is 16 bit. Hence program counter is 16 bit register.

Description : Describe re-entrant procedure with the help of schematic diagram.

Last Answer : Re-entrant Procedures: A procedure is said to be re-entrant, if it can be interrupted, used and re-entered without losing or writing over anything. To be a re-entrant, Procedure ... program execution flow reenters in the procedure1. These types of procedures are called reentrant procedures.

Description : Explain the following assembler directives. 1) DB 2) DUP 3) EQU 4) ENDs.

Last Answer : 1) DB (Define Byte or Data Byte): This is used to define a byte type variable. The range of values : 0 - 255 for unsigned numbers -128 to 127 for signed numbers This can be used ... the end of the segment The directives SEGMENT, ENDS are always enclosed in data, code, stack and extra segments.

Description : Enlist any four addressing modes of 8086 microprocessor.

Last Answer : Addressing modes of 8086 : 1. Immediate 2. Direct 3. Register 4. Register indirect 5. Indexed 6. Register relative 7. Based indexed 8. Relative based indexed 9. Implied

Description : State the use of OF and DF flags of 8086 microprocessor.

Last Answer : Overflow Flag: This flag is set if an overflow occurs, i.e. if the result of a signed operation is large enough to be accommodated in destination register. Direction Flag: It selects either increment or decrement mode for DI &/or SI register during string instructions.

Description : Define pipelining.

Last Answer : Pipelining: Process of fetching the next instruction while the current instruction is executing is called pipelining which will reduce the execution time.

Description : State the functions of following pins of 8085 1) SOD 2) HLDA

Last Answer : 1) SOD: Serial Output data SOD pin is used to transmit data serially from accumulator to the external devices connected to the pin.  2) HLDA: Microprocessor generates HLDA signal to acknowledge requesting device after HOLD signal.

Description : State the functions of temporary registers of 8085 microprocessor.

Last Answer : Temp Register (8 bits) is also called as operand register as it is used by μp for storing one of the operands during an operation and also for storing the result of any execution temproary.

Description : What is the relationship between algorithm and flowchart ?

Last Answer : Answer : The periodic minutes required to compose and execute a program are called algorithms. An algorithm can be used to solve a problem by breaking it down into several steps, solving each step ... one to solve the problem. Geometric images or assembly symbols are used in some of the flowcharts

Description : A computer programmer a. Dies all the thinking for a compute b. Can enter input data quickly c. Can operate all types of computer equipment d. Can draw only flowchart

Last Answer : a. Dies all the thinking for a compute

Description : A computer programmer a. Does all the thinking for a computer b. Can enter input data quickly c. Can operate all types of computer equipments d. Can draw only flowchart

Last Answer : a. Does all the thinking for a computer

Description : Which flowchart can not control all the work on the computer ?

Last Answer : The computer may not control all the work in the computer flowchart.

Description : What is a system flowchart ?

Last Answer : When all the work of an organization is expressed through a picture, it is called system flowchart.

Description : What is program flowchart ?

Last Answer : A program flowchart is an algorithm of a program that is expressed using diagrams.

Description : Draw and explain V and inverted V curves for synchronous motor.

Last Answer : V curves' and inverted V curves' for Synchronous Motor:  V curve:  V curve is a plot of the stator current versus field current for different constant loads. The graph is plotted ... Vcurves of synchronous motor. The highest point on each of these curves indicates unity power factor.

Description : Draw the block diagram of regulated power supply, explain function of each block and draw waveforms of each stage.

Last Answer : 1. A step down transformer 2. A rectifier 3. A filter 4. A regulator Operation of Regulated Power Supply:- Step Down Transformer:- A step down transformer will ... regulator. A regulator will maintain the output constant even when changes at the input or any other changes occur.

Description : State different types of electrical signal and draw all types of waveforms.

Last Answer : Types of electrical signals 1) Sine wave 2) Triangular wave 3) Square wave Waveforms

Description : Define resistor and draw symbol of variable resistor.

Last Answer : Resistor: A resistor is an electrical component that limits or regulates the flow of electrical current in an electronic circuit. Symbol of variable resistor:   

Description : Evaluate the following complex numbers and leave your results in polar form

Last Answer : Evaluate the following complex numbers and leave your results in polar form

Description : Calculate these complex numbers and express your results in rectangular form

Last Answer : Calculate these complex numbers and express your results in rectangular form

Description : Draw a flowchart of Do-while loop and write a program to add numbers until user enters zero. 

Last Answer : Flowchart of Do-while loop: Program:- #include<stdio.h> #include<conio.h> void main() { int no,sum=0; clrscr(); do { printf("\n Enter a number:"); scanf( ... no; }while(no!=0); printf("\n Sum of entered numbers =%d",sum); getch(); }

Description : X L and X C in Series

Last Answer : Inductive reactance X L and Capacitive reactance X C in series. Inductive reactance X L of value 60 ohm and Capacitive reactance X C of value 40 ohm are connected in series. 120 volts A C voltage is ... . The current will be 6 ampere. This time current will lead the voltage by 90 degree.

Description : Series and parallel capacitor problem

Last Answer : Series and parallel capacitor problem 1 : https://youtu.be/MSl5mRwtjAE Series and parallel capacitor problem 2 : https://youtu.be/yGwbpyEtIyw Series and parallel capacitor problem 3 : https:// ... https://youtu.be/_7KwEwWqiNU Series and parallel capacitor problem 10 : https://youtu.be/et8MCWV_OyE

Description : State the insulating materials used in motor. Write temperature class and withstand temperature ranges for them. 

Last Answer : The insulating materials used in motor are as belows: 1. Cotton, 2. Silk, or paper, 3. Press board, 4. Resins 5. PVC 6. Cellulose-Fiber, 7. Enameled coating, etc  ... Over 180° Mica, porcelain, ceramics, glass quartz, asbestos, treated glass fiber or treated asbestos. etc.

Description : In 8086 the overflow flag is set when a) The sum is more than 16 bits b) Signed numbers go out of their range after an arithmetic operation c) Carry and sign flags are set

Last Answer : b) Signed numbers go out of their range after an arithmetic operation

Description : Math algorithm/function to convert this number to 40?

Last Answer : answer:Sure the equation is y = 147.5x – 151.75 Where x is the number that goes from 1.3 to 1.7 And Y is the one that goes from 40 to 90. If you want it the other way let me know. Here it is: y = 0.0068x + 1.0288 Enjoy

Description : Best line following algorithm?

Last Answer : This brings back memories of the robotics club in high school. Unfortunately, I was the engineer and not the programmer. :[ Umm, you might want to look at this. It seems like a simple explanation of line following for robots.

Description : What exactly is an algorithm?

Last Answer : Its a series of steps designed to complete a task.

Description : Where can I find a random map genaration algorithm?

Last Answer : Jamis Buck’s random dungeon generator might be interesting to you. It was intended for D&D, but it could be extended to other things as well.

Description : What is a graphical representation in an algorithm ?

Last Answer : Graphical presentation flowchart in algorithm. A graphical presentation flowchart.

Description : What is the next step in program algorithm ?

Last Answer : Answer : The next step in the program algorithm is drawing the flowchart.

Description : Data going into the computer is called? 1) Output 2) Algorithm 3) Input 4) Calculations 5) Flowchart

Last Answer : Answer :3

Description : A ______________ is diagram that depicts the flow of a program. a) Algorithm b) Hash Table c) Graph d) Flowchart

Last Answer : Answer: d Explanation: A flowchart is a diagram that helps us determine the flow of the program. Other options are irrelevant

Description : When an algorithm is written in the form of a programming language, it becomes a _________ a) Flowchart b) Program c) Pseudo code d) Syntax

Last Answer : Answer: b Explanation: An algorithm becomes a program when it is written in the form of a programming language. Thus, any program is an algorithm

Description : The word ____________comes from the name of a Persian mathematician Abu Ja’far Mohammed ibn-i Musa al Khowarizmi. a) Flowchart b) Flow c) Algorithm d) Syntax

Last Answer : Answer: c Explanation: The word algorithm comes from the name of a Persian mathematician Abu Ja’far Mohammed ibn-i Musa al Khowarizmi

Description : ___uses various symbols to represent function within program and is __ _representation: a. Flowchart, pictorial b. Algorithm, pictorial c. Pictorial, flowchart d. None of these

Last Answer : a. Flowchart, pictorial

Description : Avoid crossing flow lines. a. Flowchart b. Algorithm c. Botha &b d. None of these

Last Answer : a. Flowchart

Description : is useful to prepare detailed program documentation: a. Flowchart b. Algorithm c. Botha &b d. None of these

Last Answer : a. Flowchart

Description : Write algorithm and draw flow-chart to print even numbers from 1 to 100.

Last Answer : Here's one possible algorithm to print even numbers from 1 to 100: Start with a variable i equal to 1. Check if i is less than or equal to 100. If i is less than or equal to 100 ... and increments `i` by 1. The loop continues until `i` is greater than 100, and the program ends.

Description : In time-cost optimization of a project, crashing is done. (A) On all the activities (B) On all the activities lying on the critical path (C) Only on activities lying on the ... critical activities and those that become critical at any stage of crashing in the order of ascending cost slope

Last Answer : D

Description : Magnetic and Non-magnetic Materials

Last Answer : We have now looked at a number of ways in which matter can be grouped, such as into metals, semi-metals and non-metals; electrical conductors and insulators, and thermal conductors and insulators. ... information must be stored, in computers and TV's, as well as in generators and electric motors.

Description : Metals, Metalloids and Non-metals

Last Answer : The elements in the periodic table can also be divided according to whether they are metals, metalloids or non-metals. The zigzag line separates all the elements that are metals from those that ... more metals then non-metals. Metals, metalloids and non-metals all have their own specific properties.

Description : Names and formulae of substances

Last Answer : Think about what you call your friends. Some of your friends might have full names (long names) and a nickname (short name). These are the words we use to tell others who or what we are ... that was used earlier, the compound name is a combination of the names of the elements but slightly changed.

Description : Outline the process of accounting.

Last Answer : Process of accounting An accounting system tracks and controls the income and expenses of a business. Accounting systems can be as simple as a pen and notepad, and can be as complex ... find themselves required to create reports for external stakeholders, such as lenders and private investors. 

Description : Explain law of demand and law of supply.

Last Answer : The Law of Demand The law of demand states that, if all other factors remain equal, the higher the price of a good, the less people will demand that good. In other words, the higher the price, the lower ... ). At point B, the quantity supplied will be Q2 and the price will be P2, and so on.

Description : Describe the concept of fixed cost, variable cost and total cost.

Last Answer : Total cost  Total cost refers to total expense incurred in reaching a particular level of output, if such total cost is divided by quantity produced average or unit cost is obtained. The ... . Direct material, direct labour, direct expenses, variable overheads are some examples of variable cost.

Description : Explain the procedure of detailed energy audit.

Last Answer : Detailed Energy Audit Detailed audit provides a detailed project implementation plan for a facility, since it evaluate all major energy using systems. This type of audit offers the ... Management aspects of design and operating data collection, field measurements, data analysis, and training