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
0
Answer:
Algorithm :
Step 1 : Start
Start 2 : Input num1, num2, num3
Start 3 : Calculate avg = (num1 + num2 + num3)/3)
Start 4 : Output avg
Start 5 : 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, num1, num2, num3. Thats it.
hope u understood...
Explanation:
Attachments:
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Science,
9 months ago
Math,
9 months ago
India Languages,
1 year ago