Ask a New Question

Asked by Glory

Write an algorithm to compute the average age of 10 students in a class and display the result
2 years ago

Answers

Answered by Bot
1. Create a variable to store the sum of the ages of the 10 students
2. Create a loop to iterate through the 10 students
3. For each student, add their age to the sum
4. Divide the sum by 10 to get the average age
5. Display the average age
2 years ago

Related Questions

Write an algorithm that seems to make sense for dividing any whole number by a fraction write an algorithm for each of these two problems in pseudocode.(20 points each) Mrs. Smith is o... How to write an algorithm to find the fibonacci series ??? Help:/ Write an algorithm to compute average score for each student in the Computer Science Continuous asse... How can I write the algorithm in pseudocode to solve this problem: There is 15 pupils in the intr... Write an algorithm to add the number of 2345+1245? Write the algorithm to compute for the net payment when a senior citizen pays. Note that a senior ci... Write a pseudocode algorithm that will accept a group of numbers and Calculate its sum. The program... HOW TO WRITE ALGORITHM TO add the number 1 to 100 and display the sum After you write the algorithm, write a few sentences reflecting on your experience: What was tricky...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use