Question: Write a console app called CollectPossumSizes that continuously prompts the user to enter sizes of possums (in inches) until the sentinel value of 0 is

Write a console app called CollectPossumSizes that continuously prompts the user to enter sizes of possums (in inches) until the sentinel value of 0 is entered. You must use a loop to get these possum sizes from the user. As you get each possum size, count it and accumulate it. In other words, use a counter variable and add 1 to it each time you get a possum value. Similarly, use an accumulator variable and add the possum size to it each time you get one. After the loop is done, output the number of possum values collected, the sum of possum values, and the average possum size (in inches).

Make sure your loop is structured (refer to the priming read or priming input that we learned about in COP 1000).

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!