Flowchart to find the sum and average of three number?
Answers
Answered by
242
STEP 1 START
STEP 2 INPUT X,Y,Z
STEP 3 COMPUTE SUM = X + Y + Z
STEP 4 COMPUTE AVG = SUM/3
STEP 5 PRINT SUM
STEP 6 PRINT AVG
STEP 7 END
STEP 2 INPUT X,Y,Z
STEP 3 COMPUTE SUM = X + Y + Z
STEP 4 COMPUTE AVG = SUM/3
STEP 5 PRINT SUM
STEP 6 PRINT AVG
STEP 7 END
Answered by
85
Answer:
We all know that the average = summation of n numbers / n.
HERE, the value of n is 3.
Flowchart :
step 1: Start
step 2: Take three input for calculating the average. say the numbers are n1, n2, n3.
Step 3: Add the all values of n1, n2 and n3. Then you have to store the result of addition in another variable like Add = n1 + n2 +n3
Step 4: After that you have to take another variable for average like avg = add / 3.
Step 5: print the value average;
step 6: END
Similar questions
Social Sciences,
7 months ago
Science,
7 months ago
Geography,
7 months ago
English,
1 year ago
Math,
1 year ago
Biology,
1 year ago
Psychology,
1 year ago