Question: 7 . Sentinel While Loop a ) Implement a while loop to request numbers from the console and insert them into a list. b )

7. Sentinel While Loop a) Implement a while loop to request numbers from the console and insert them into a list. b) Insert all the numbers into a list. c) Stop requesting values if the user input is a zero (0). d) Print all elements of the list, sum and average. Note that 0 should not be added to the list. Input text can be any content. Just make sure to precisely match the output format below.

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 Programming Questions!