Write an algorithm that accepts five numbers and displays the
sum and average of the numbers?

Answers were Sorted based on User's Feedback



Write an algorithm that accepts five numbers and displays the sum and average of the numbers? ..

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

Write an algorithm that accepts five numbers and displays the sum and average of the numbers? ..

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

Write an algorithm that accepts five numbers and displays the sum and average of the numbers? ..

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

Write an algorithm that accepts five numbers and displays the sum and average of the numbers? ..

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

Write an algorithm that accepts five numbers and displays the sum and average of the numbers? ..

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

Write an algorithm that accepts five numbers and displays the sum and average of the numbers? ..

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

Post New Answer

More MTS Interview Questions

How does Automatic management of processes and threads done in MTS?

1 Answers  


What are the four transaction participation states in MTS?

1 Answers  


How interfaces are used by the component to communicate with MTS?

1 Answers  


What are Resource Managers in MTS?

1 Answers  


what is meany by depriciation?

1 Answers  






About MTS and it?s purpose ?

2 Answers   Clariant, DWP, MTS, Satyam,


About Connection pooling in MTS ?

1 Answers   MTS, Satyam,


i want to put reliance cdma sim in mts android mobile it will work or not

1 Answers   MTS,


How Object Instance Management done in MTS?

1 Answers  


Write an algorithm that accepts five numbers and displays the sum and average of the numbers?

6 Answers   JIPMER,


Explain Distributed Transactions in MTS?

1 Answers  


Categories