Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Ask the user for altofmmbers floats) by ?¡king anumber and exting the iput loop

ID: 3737795 • Letter: A

Question

Ask the user for altofmmbers floats) by ?¡king anumber and exting the iput loop when user does rot enter an nber Caklate and output the average ? e laithnetk mean) for this ist of numbers 2 RESTART:E:/ALned/&t-foundations-I;/test3/solutions.pY Enter a rloat ing poist number ox something loe to break: 1.2 Enter a floating point m-z or ?0mchag ?laa to break: 1.3 Ester a fhoating point ber or something eloo to break: 8 ntartlosting pont nbes ox mething iso to break: 100 Enter a flodting poLet unbex or someching 1 to break: tin Average or the ist 5.7749999959999ss 2

Explanation / Answer

Please find the program below. Line by line explation is provided in the code itself. Program execution output is provided at the end.

Function :

========

Execution Output :

==============

Enter a floating point number or someting else to break : 1.2
Enter a floating point number or someting else to break : 1.9
Enter a floating point number or someting else to break : -80
Enter a floating point number or someting else to break : 100
Enter a floating point number or someting else to break : fin
Average for the list is 5.774999999999999

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote