Respuesta :

Answer:

Step 1: Start.

Step 2 :Read the three number suppose "a","b","c" form the user.

Step 3: Declared a variable "sum" and "Avg".

Step 4 : sum=a+b+c;

Step 5: Avg=sum/3.

Step 6:Display "sum " and "Avg".

Step 7 :End .

A flow chart is but a pictorial representation of an algorithm and is meant to depict the flow of control in a program.

The first step is to decide on an algorithm and maybe write it in the form of a pseudo code, an informal way of writing statements of a program without bothering about details of syntax.

Algorithms for the given problem:

[I]

Initialize Counter=0, Sum=0

Input integer

Add integer to Sum

Increment Counter

If Counter > 3, divide Sum by 3, Output result, stop

Else go to 2

[II]

Input Integer1, Integer2, Integer3

Average= ( Integer1+ Integer2+Integer3)/3

Output average

The second algorithm would be clumsy to find the average of a large number of inputs.

The first one can be easily generalised to handle n inputs, by introducing step 0 and modifying step 5

0. Input n

5. If Counter > n , divide Sum by n, Output result, stop

Note : There can be more ways of writing an algorithm for the problem by invoking loop control statements.

ACCESS MORE