Computers

Arithmetic Mean Raptor Flowchart

Arithmetic Mean Raptor Flowchart

Raptor flowchart to calculate the Arithmetic Mean of two numbers. The flowchart will prompt the user for the two numbers. Arithmetic Mean(AM) of two numbers a and b is:

 

\huge AM = \frac{ a + b }{2}

 

Example:

Let a = 23 and b= 56

AM = (23 + 56 )/2

= 79/2 = 39.5

Raptor Flowchart

ArithmeticMean RaptorFlowchart

Output

User entered numbers:= 23 , 56
Arithmetic Mean:=39.5000
—-Run complete. 7 symbols evaluated.—-

Enhancements

We can make further enhancements to the flowchart to accept n numbers from the user and calculate the AM of n numbers.

 

\huge AM = \frac{x_{1} + x_{2} + ... + x_{n}}{n}

 

\huge AM = \frac{\sum_{i=1}^{n}x_{i}}{n}