Question: C # Programming: Write a console app called CollectTurtleSizes that continuously prompts the user to enter sizes of turtles (in inches) until the sentinel value

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

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!