write an algorithm and draw the flowchart for finding the average of two number algorithm ?
Answers
Flowchart and algorithm
1.Write an algorithm for finding the average of two numbers and also draw a flowchart.
2.Algorithm: Input: two numbers x and y Output: the average of x and y Step 1 : input x,y Step 2: sum=0,average=0 Step 3:sum = x + y Step 4:average = sum /2 Step 5: print average.
Answer: Algorithm: Two integers, x and y, are input. The sum of x and y is displayed. Step 1: Enter x and y Step 2: average=0, sum=0 Sum = x plus y in step 3 Average equals total /2 in step four. 5. Print the total.
Explanation: The sum of the grades split by the total number of pupils equals the class average. For a computer to solve this issue, each grade must be entered, the sum of all marks must be tracked, the average must be calculated, and the solution must be displayed.
Average The arithmetic mean is determined by combining a set of integers, dividing by their total, and then taking the result. For instance, the result of 30 split by 6 is 5, which is the average of 2, 3, 3, 5, 7, and 10.
In plain English, we must combine all the numbers and split the result by N in order to determine the average of N numbers.
The indicator measures the typical pupil enrollment in each session in a particular academic group or school. Divide the total number of pupils registered in the specified school by the number of courses to determine the value of the indicator.
Learn more about average from here;
https://brainly.in/question/33623881
https://brainly.in/question/5650147
#SPJ6