Ask a New Question

Asked by madalena

Write an algorithm prompts a user to enter 15 masses of goats and display average mass
5 years ago

Answers

Answered by oobleck
sum=0
for i=1..15
print "Enter mass"
read mass[i]
sum += mass[i]
end for
print "Average mass: ",sum/15
5 years ago
There are no AI answers yet. The ability to request AI answers is coming soon!

Submit Your Answer


We prioritize human answers over AI answers.

If you are human, and you can answer this question, please submit your answer.

Related Questions

Write an algorithm that seems to make sense for dividing any whole number by a fraction Write a program that prompts the user to enter a temperature, followed by a letter representing Cels... Write an algorithm, in English, to solve the following problem. Be sure to include pre- and post-con... write a program that prompts the user to input three numbers. The program should then output the num... How to write an algorithm to find the fibonacci series ??? Help:/ How can I write the algorithm in pseudocode to solve this problem: There is 15 pupils in the intr... Write a program that prompts the user to enter the cost of renting one room,the number of rooms book... Write an algorithm to add the number of 2345+1245? Write a program that prompts the user to enter a number representing the speed a car is travelling. Write an algorithm to print the number of months (use 30 days for a month) and remaining days given...
Submit Your Answer

Question

Write an algorithm prompts a user to enter 15 masses of goats and display average mass

Ask a New Question
Archives Contact Us Privacy Policy Terms of Use