How do you write an algorithm to find the average of five different input numbers?

1 Answer

Answer :

What is the answer ?

Related questions

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 : Write an algorithm and draw the flowchart to find sum of series of numbers. 

Last 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 ... Decrement byte counter 9. If byte counter=0 then step 10 else step 4 10. Stop

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 : Data going into the computer is called? 1) Output 2) Algorithm 3) Input 4) Calculations 5) Flowchart

Last Answer : Answer :3

Description : A search algorithm takes _________ as an input and returns ________ as an output. a) Input, output b) Problem, solution c) Solution, problem d) Parameters, sequence of actions

Last Answer : b) Problem, solution

Description : Which of the following sorting algorithm has the running time that is least dependant on the initial ordering of the input? a) Insertion sort b) Quick sort c) Merge sort d) Selection sort

Last Answer : d) Selection sort

Description : Which of the following algorithm pays the least attention to the ordering of the elements in the input list? a) Insertion sort b) Selection sort c) Quick sort d) None

Last Answer : b) Selection sort

Description : If the given input array is sorted or nearly sorted, which of the following algorithm gives the best performance? a) Insertion sort b) Selection sort c) Quick sort d) Merge sort

Last Answer : a) Insertion sort

Description : What is the algorithm to compute the sum of even numbers between 7 and 50?

Last Answer : (7 to 50).filter(_ % 2 == 0).sum

Description : Which is an algorithm or techniques used to multiply two numbers. a. Addition algorithm b. Subtraction algorithm c. Multiplication algorithm d. __ Allof these

Last Answer : c. Multiplication algorithm

Description : Which algorithm are used depending on the size of the numbers: a. Simple algorithm b. Specific algorithm c. Both d. None of these

Last Answer : b. Specific algorithm

Description : Which algorithm is used as a general variant of a theorems, in the domain of integral numbers: a. Multiplication algorithm c. Addition algorithm d. Simple algorithm

Last Answer : c. Addition algorithm

Description : If delaysare recorded as 10 bit numbers in a 50 router network, and delay vectorsare exchanged twicea second,how muchbandwidth per fill duplex line is occupied by the distributedrouting algorithm? A. 500 bps B. 1500 bps C. 5 bps D. 1000 bps

Last Answer : 1000 bps

Description : There are five numbers, the second number is 25% more than the first or third number, the 4th number is 5/4 of the third number and the fifth number is 3/2of the 3rd number. What is the average of 5 numbers if the first number is 10? A) 12.5 B) 12 C) 13 D) 10

Last Answer : B) Let us consider 5 numbers are A,B,C,D and E B=125/100×A B=125/100×C 125/100×A=125/100×C A/C=1/1 D=5/4×c E=3/2*C First number is 10, A=10=x B=25% ×10+10=12.5 C=10 D=5/4×10=12.5 E=3/2×C=15 Required average=10+12.5+10+12.5+15/5=12

Description : The average of 12 numbers is 7.9. The average of 5 of them is 6.8, while the average of other five is 7.7. what is the average of the remaining 2 numbers? A) 10.25 B) 11.15 C) 12.65 D) 13.25

Last Answer : B) Sum of the remaining 2 numbers = [(12 * 7.9) – (586.8) – (5*7.7)]  = 94.8 – 34 – 38.5  = 22.3  Required average = 22.3 / 2  = 11.15

Description : Three main basic features involved in characterizing membership function are A. Intution, Inference, Rank Ordering B. Fuzzy Algorithm, Neural network, Genetic Algorithm C. Core, Support , Boundary D. Weighted Average, center of Sums, Median

Last Answer : C. Core, Support , Boundary

Description : The average case occurs in the Linear Search Algorithm when: (A) The item to be searched is in some where middle of the Array (B) The item to be searched is not in the array (C) The item to be searched is in the last of the array (D) The item to be searched is either in the last or not in the array

Last Answer : (A) The item to be searched is in some where middle of the Array

Description : The goodness of an algorithm is most often expressed in terms of its  (1) Best Case complexity (2) Average Case complexity (3) Worst Case complexity (4) Random case complexity

Last Answer : A

Description : Write a program that ask for user input from 5 to 9 then calculate the average

Last Answer : #include "iostream.h" int main() { int MAX = 4; int total = 0; int average; int numb; for (int i=0; i numb; while ( numb9) { cout > numb; } total = total + numb; } average = total/MAX; cout

Description : Plzz give me answer

Last Answer : Here is an algorithm to find the area of a triangle: Accept the values of the three sides of the triangle (a, b, c). Calculate the semi-perimeter of the triangle using the formula: s = (a ... the triangle, and it is used as a way to simplify the formula and avoid having to calculate the perimeter.

Description : Write an algorithm to calculate the area of a circle and display the result . Use the formulae A=¶r where ¶ is equal to 3.1416?

Last Answer : 10001/999900

Description : How do you write an algorithm which takes students marks and grades them as follows Mark greater than 60 Pass?

Last Answer : Need answer

Description : How do you write an algorithm to swap the values of x and y using a temporary variable t?

Last Answer : To swap the values of two variables, x and y, using a temporaryvariable t:t = x;x = y;y = t;To implement this algorithm as a function, the variables must bepassed by reference. For efficiency, ... (since C++11). If a type does not support themove semantic, copy semantics will be used instead.

Description : How do you Write a pseudo code algorithm that reads in three values and writes out the result of subtracting the second value from the sum of the first and third values?

Last Answer : Pseudocode means you don't use any actual computer language, so you can be quite informal. Just get the general idea. In this case, for instance:Input number to aInput number to bInput ... a + c - bShow resultYour teacher may have specific requirements for pseudocode; try to incorporate those.

Description : Write the algorithm for restoring division?

Last Answer : Do the following for n times: 1) Shift A and Q left one binary position. 2) Subtract M and A and place the answer back in A. 3) If the sign of A is 1, set q0 to 0 and add M back to A. Where A- Accumulator, M- Divisor, Q- Dividend.

Description : Write down the advantages of Booth’s Algorithm

Last Answer : i. It handles both positive and negative numbers ii. It achieves some efficiency in the number of additions required when the multiplier has a few larger blocker of 1’s

Description : Write an algorithm to determine the given number is odd or even.

Last Answer : Step 1- Start Step 2- Read / input the number. Step 3- if n%2==0 then number is even. Step 4- else number is odd. Step 5- display the output. Step 6- Stop

Description : Write an algorithm to determine whether a given number is divisible by 5 or not

Last Answer : Here's one possible algorithm to determine whether a given number is divisible by 5 or not: Start by taking the input number. Check if the last digit of the number is either 0 or 5. If the ... The above two algorithms are basic ways of checking whether the given number is divisible by 5 or not.

Description : Write down Cyrus-Beck line clipping algorithm.

Last Answer : Step 1: Read end points of line P1 and P2. Step 2: Read vertex coordinates of clipping window. Step 3: Calculate D = P2 - P1. Step 4: Assign boundary point b with particular edge. Step 5: Find ... parametric equation of line P1P2. Step 12: Draw line segment P(tL) to P(tU). Step 13: Stop.

Description : Write down Cohen-Sutherland Line clipping algorithm.

Last Answer : Step 1: Scan end points for the line P1(x1, y1) and P2(x2, y2) Step 2: Scan corners for the window as (Wx1, Wy1) and (Wx2, Wy2) Step 3: Assign the region codes for endpoints P1 and P2 by ... if any of the end point of it appear outside the window. Step 8: Draw the remaining line. Step 9: Exit

Description : Explain and write steps for DDA line drawing algorithm. 

Last Answer : This algorithm generates a line from differential equations of line and hence the name DDA. DDA algorithm is an incremental scan conversion method. A DDA is hardware or software used for linear interpolation of variables over ... : Steps 1: Read the end points of line (x1,y1) and (x2,y2).

Description : Write a Program in ‘C’ for DDA Circle drawing algorithm

Last Answer : #include<stdio.h> #include<conio.h> #include<graphics.h> #include<math.h> void main() { int gdriver=DETECT,gmode,errorcode,tmp,i=1,rds; float st_x,st_y,x1,x2,y1,y2,ep; initgraph(& ... =y2; }while((y1-st_y)<ep || (st_x-x1)>ep); getch(); }

Description : Write the midpoint subdivision algorithm for line clipping.

Last Answer : Step 1: Scan two end points for the line P1(x1, y1) and P2(x2, y2). Step 2: Scan corners for the window as (x1, y1) and (x2, y2). Step 3:Assign the region codes for ... 5 for both subdivided line segments until you get completely visible and completely invisible line segments. Step 6: Exit.

Description : Rephrase the Bresenham’s algorithm to plot 1/8th of the circle and write the algorithm required to plot the same.

Last Answer : The key feature of circle that it is highly symmetric. So, for whole 360 degree of circle we will divide it in 8-parts each octant of 45 degree. In order to that we will use Bresenham's Circle Algorithm for calculation of the ... Call Putpixel (Y + h, -X - k). Call Putpixel (-Y + h,-X + k).

Description : Write DDA Arc generation algorithm.

Last Answer : 1. Read the centre of curvature, say(x0,y0) 2. Read the arc angle, say Ɵ 3. Read the starting point of the arc, say(x,y) 4. Calculate dƟ dƟ=min(0.01,1/3.2*(|x-x0|+|y-y0|))) 5. Initialize angle = 0 6. ... Plot(x,y) x=x-(y-y0) *dƟ y=y-(x-x0) *dƟ Angle =Angle + dƟ } 7. stop

Description : WHAT IS THE DIFFERENT algorithm of advantage and amp disadvantage?

Last Answer : Different algorithms do different things, so it makes no sense to compare them. For example, the accumulate algorithm is an algorithm which performs the same operation upon every element of a container, ... . Combining the two to create a hybrid algorithm would give us the best of both worlds.

Description : The BACKTRACKING-SEARCH algorithm in Figure 5.3 has a very simple policy for what to do when a branch of the search fails: back up to the preceding variable and try a different value for it. This is ... also possible to go all the way to set of variable that caused failure. a) True b) False

Last Answer : a) True

Description : DES and public key algorithm are combined (i) to speed up encrypted message transmission (ii)to ensure higher security by using different key for each transmission (iii) as a combination is always better than individual system (iv ... e-Commerce a. i and ii b. ii and iii c. iii and iv d. i and iv  

Last Answer : a. i and ii

Description : Message can be sent more securely using DES by a. encrypting plain text by a different randomly selected key for each transmission b. encrypting plain text by a different random key for each ... instead of using hardware d. designing DES with high security and not publicizing algorithm used by it  

Last Answer : b. encrypting plain text by a different random key for each message transmission and sending the key to the receiver using a public key system

Description : Which of the following statements is not true for Multi Level Feedback Queue processor scheduling algorithm? (A) Queues have different priorities. (B) Each queue may have different scheduling algorithm (C) ... to a queue (D) This algorithm can be configured to match a specific system under design

Last Answer : (C) Processes are permanently assigned to a queue

Description : When sending a text message, can you type numbers in the body of the message without changing the input format?

Last Answer : on my motorola phone I can just get to the numbers after I go through the letters on a given key (i.e. if I hit the #2 button, I can do A, B, C, then 2).

Description : Which input device is used for inserting pin numbers for credit cards? A. Graphic Tablet B. Numeric pad C. Bar Code reader D. Magnetic Stripe reader

Last Answer : B. Numeric pad

Description : For console circuit card 'LLEA' as shown in the illustration at coordinates '63R/S', the input(s) and output(s) are respectively on pin numbers ____________. EL-0100 A. '5' and '3' & '4' B. '2' & '3' and '5' & '6' C. '5' & '6' and '2' & '3' D. '3' & '4' and '5'

Last Answer : Answer: D

Description : ________located on the right corner of the keyboard, is a separate set of number keys for quick input of numbers: a) Numeric Keypad b) Arrow Pad c) Symbolic Key Pad d) None of These

Last Answer : a) Numeric Keypad

Description : Given the following statements :  S1 : The subgraph-isomorphism problem takes two graphs G1 and G2 and asks whether G1 is a subgraph of G2.  S2 : The set-partition problem takes as input a set S of numbers and ... S1 is P problem and S2 is P problem. (D) S1 is P problem and S2 is NP problem.

Last Answer : (B) S1 is NP problem and S2 is NP problem.

Description : What is the function of following UNIX command? WC - lb& (A) It runs the word count program to count the number of lines in its input, a, writing the result to b, as a foreground process. (B) It runs ... (D) It copies the l ' numbers of lines of program from file, a, and stores in file b.

Last Answer : (B) It runs the word count program to count the number of lines in its input, a, writing the result to b, but does it in the background.

Description : When average product of an input is at its maximum then : (1) AP > MP (2) AP < MP (3) AP = 0 (4) AP = MP (AP= Average product) (MP= Marginal product.)

Last Answer : (4) AP = MP Explanation: There is a close relationship between marginal product and average product because both are derived from total product. When marginal product is equal to average product, the average product is ... assume that at the "cross-over point," when MP = AP, AP is at its maximum.

Description : When average product of an input is at its maximum then : (AP= Average product) (MP= Marginal product) (1) AP = 0 (2) AP = MP (3) AP > MP (4) AP < MP

Last Answer : AP = MP

Description : In a 3-phase half-wave rectifier, if per phase input is 200 V, then the average output voltage is   (a) 233.91 V (b) 116.95V (c) 202.56 V (d) 101.28V 

Last Answer : a

Description : The mean of five numbers is 30. If one number is excluded, their mean becomes 28. The excluded number is -Maths 9th

Last Answer : NEED ANSWER