Question: Please help using VS code/ python, image of 6-2-numbers.txt uploaded Average of Numbers (adapted from #6) - Save the file as ch6_ex2.py Write a program

Please help using VS code/ python, image of 6-2-numbers.txt uploaded

Please help using VS code/ python, image of 6-2-numbers.txt uploaded Average ofNumbers (adapted from \#6) - Save the file as ch6_ex2.py Write a

Average of Numbers (adapted from \#6) - Save the file as ch6_ex2.py Write a program that calculates the average of all the numbers stored in a file. Test the program using the following text file (download from BlackBoard assignment page): 6-2-numbers.txt Your program must: - Open the hard-coded designated file for reading - Use a loop to read all lines from the file - Count the number of lines in the file - Keep a running total of all the numbers in the file - Display the total, the number of lines, and the average of all numbers. - All numeric displays must have two decimal points, and the decimal points should align in the column - Close the file The output should look EXACTLY like the following: 2214374267560000971257

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!