Computer Science, asked by RoshanDhekan8637, 1 year ago

Draw a flowchart which computing sum average product of three numbers

Answers

Answered by Vamprixussa
49

Ello user !!!!!!!

Here is your answer,

=====================================================

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

======================================================

HOPE THIS HELPS YOUU :)

AND STAY BLESSED.

Attachments:
Answered by fistshelter
30

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 sum, average and product. Let them be  a, b, c.

Step 3: Add the all values of a, b and c. Then you have to store the result of addition in another variable like Sum = a+b+c

Step 4:  After that you have to take another variable for average like avg = sum / 3.

Step 5: Multiply all the inputs and take another variable called prod = a*b*c

Step 6: print the value sum;

Step 7: Print the value avg;

Step 8: Print the value prod

Step 9: End

Pseudo code will look like :

STEP 1     START

STEP 2     INPUT a,b,c

STEP 3     COMPUTE SUM = a + b + c

STEP 4     COMPUTE AVG = SUM/3

STEP 5     COMPUTE PROD = a*b*c

STEP 6     PRINT SUM

STEP 7     PRINT AVG

STEP 8     PRINT PROD

STEP 9     END

Flowchart is attached

Attachments:
Similar questions