Write an algorithm that accepts five numbers and displays the
sum and average of the numbers?
Answers were Sorted based on User's Feedback
Answer / ketan
Step 1:START
Step 2: accept five numbers a,b,c,d,e
Step 3:sum=a+b+c+d+e
Step 4: average=sum%5
Step 5: Display sum and average
Step 6:STOP
Is This Answer Correct ? | 83 Yes | 18 No |
Answer / a noobie
Step 1 : start
Step 2: declare a,b,c,d,e,average,sum
Step 3: read variable a,b,c,d,e
Step 4: sum=a+b+c+d+e
Step 5: average=sum/5
Step 6:stop
Remember % is a modulus (shows remainder) operator
Ex : 7%2 =1
Is This Answer Correct ? | 15 Yes | 5 No |
Answer / sushil ghogre
Step 1: start
Step 2: read five variables a, b, c, d, e, sum, avg;
Step 4: sum = a+b+c+d+e;
Step 5: avg = sum%5;
Step 6: display sum and average
Step 7: stop
Is This Answer Correct ? | 13 Yes | 8 No |
Answer / sudha
Step 1:start
Step2:get first number
Step 3:get second number
Step 4:get third number
Step 5:get fourth number
Step 6:get fifth number
Step 7:add five numbers
Step 8:average five number/2
Step 9:display the result
Step 10:stop
Is This Answer Correct ? | 35 Yes | 33 No |
Answer / hardik hemant panchal
Step 1= start
Step 2= declare 5 variables, a, b, c, d, e, sum, average;
Step 3= read variables a, b, c, d, e
Step 4= sum= a+b+c+d+e;
Step 5= average =sum%5;
Step 6= display sum and average
Step 7= stop
Is This Answer Correct ? | 10 Yes | 10 No |
Answer / young b
step 1: start
step2: print average/sum 6
step 3: Average of 6
step 4: get the sum of 6
step 5: print the sum of 6
step 6: stop
Is This Answer Correct ? | 2 Yes | 3 No |
How interfaces are used by the component to communicate with MTS?
i want to put reliance cdma sim in mts android mobile it will work or not
About Connection pooling in MTS ?
How Object Instance Management done in MTS?
How does Automatic management of processes and threads done in MTS?
About MTS and it?s purpose ?
2 Answers Clariant, DWP, MTS, Satyam,
What are Resource Managers in MTS?
what is meany by depriciation?
What are the four transaction participation states in MTS?
Explain Distributed Transactions in MTS?
Write an algorithm that accepts five numbers and displays the sum and average of the numbers?