Algorithm to find the sum and average of 3 numbers: Start. Input three numbers (let's call them A, B, and C). Calculate the sum (Sum = A + B + C). Calculate the average (Average = Sum / 3). Output the sum and average. End. Flowchart: [Start] ↓ [Input A, B, C] ↓ [Sum = A + B + C] ↓ [Average = Sum / 3] ↓ [Output Sum, Average] ↓ [End]
You can use Euclid's algorithm to calculate the gcf of two of the numbers - then use Euclid's algorithm again with the result and the third number.Or you can factor all the numbers into prime factors, and check which prime factors occur in all three numbers.
Yes. For example, the average of 5, 7, and 9 is 7.
The average of these three numbers is 10.666
The average of these three numbers is 12.
write an algorithm to compute the weekly average rainfall given the daily rainfall for four weeks
Algorithm to find the sum and average of 3 numbers: Start. Input three numbers (let's call them A, B, and C). Calculate the sum (Sum = A + B + C). Calculate the average (Average = Sum / 3). Output the sum and average. End. Flowchart: [Start] ↓ [Input A, B, C] ↓ [Sum = A + B + C] ↓ [Average = Sum / 3] ↓ [Output Sum, Average] ↓ [End]
By dividing
To calculate the average of two numbers, add them together, and divide the result by 2. (For the average of three numbers, you add up the three numbers, and divide by three, etc.) The average is (5000 + 7000)/2 = 6000
You can use Euclid's algorithm to calculate the gcf of two of the numbers - then use Euclid's algorithm again with the result and the third number.Or you can factor all the numbers into prime factors, and check which prime factors occur in all three numbers.
125, 126 and 127.
Yes. For example, the average of 5, 7, and 9 is 7.
3, 5, and 7 are three prime numbers whose average is 5.
The average of the numbers 51, 52, and 56 is 53. To get the average you would add all three numbers and then divide by three.
12
3, 5, and 7 are three prime numbers whose average is 5.
48