Computer Science, asked by benjaminmensah362, 10 months ago

Write an algorithm for find the average of 3 numbers. Represent your results also using a flowchart. Determine the decision logic in your answer and explain why?

Answers

Answered by tanupriyatommy
0

Answer:

To draw any flowchart it is necessary to make algorithm for the same

Algorithm : To calculate average of three numbers.

Step1 : Start

Step2 : Read three values a, b, c. //(int or float or double any but dont write datatype in flowchart)

Step3 : initialize avg to 0

Step4 : avg <- (a+b+c)/3

Step5 : print avg

Step6 : Stop

Then to draw flowchart for same. First we need to understand what are the symbols for each statement.

Now to draw flowchart of finding the average of three numbers, we use above symols and make a flowchart like this

In this way we can draw flowchart of finding the average of three numbers. One thing which is important is here that name of variables should be in caps ie here AVG, A, B, C. Thats it.

Explanation:

Attachments:
Similar questions