Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

If the ages are 10,20, 30 what is the average? AverageAge Sum = 0 Initializes sum and counter to 0 Counter- 0 7 (Primer Read)

If the ages are 10,20, 30 what is the average?
image text in transcribed
image text in transcribed
AverageAge Sum = 0 Initializes sum and counter to 0 Counter- 0 7 (Primer Read) Enter Age Enters first age While \\False Age 0 / Age = 0 is avalue to stop the loop True Sum Sum Accumulates the ages + Age Counter Counter + 1 Counts the number of ages Enter Age Enters the next age

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions