Question: AverageAge (modified with while loop) language :Java Modify it to prompt the user for how many ages they would like to enter. Run the user

AverageAge (modified with while loop)

language :Java

Modify it to prompt the user for how many ages they would like to enter. Run the user through a while loop prompting them to enter an age for the number of times they provided. After the last age is entered, return the average age back to them. Verify that the age returned back to them displays a decimal point (double). The input of the ages should be integers - not doubles.

Verify that your loop is correct and ends appropriately. If you submit an infinite loop, you will receive zero points. Infinite loops equals not happy instructor.

Add in comments to explain what your code is doing.

You do not have to use a method for this activity.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!