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

salesdata.txt 1867.24,3124.20,1301.09,1489.27,1822.45,2111.89,1425.56 1245.67,14

ID: 3622325 • Letter: S

Question

salesdata.txt

1867.24,3124.20,1301.09,1489.27,1822.45,2111.89,1425.56
1245.67,1490.07,1679.87,2371.46,1783.92,1461.99,2059.77
2541.36,2965.88,1965.32,1845.23,7021.11,9652.74,1469.36
2513.45,1963.22,1568.35,1966.35,1893.25,1025.36,1128.36
1867.24,3124.20,1301.09,1489.27,1822.45,2111.89,1425.56
3296.54,9147.88,1801.45,0866.77,2001.21,0096.24,1156.83
2513.45,1963.22,1568.35,1966.35,1893.25,1025.36,1128.36
1234.67,0123.28,1342.01,1255.22,2611.91,3811.49,0089.68
1867.24,3124.20,1301.09,1489.27,1822.45,2111.89,1425.56
2513.45,1963.22,1568.35,1966.35,1893.25,1025.36,1128.36
1245.67,1490.07,1679.87,2371.46,1783.92,1461.99,2059.77

Explanation / Answer

(correction: here is the entire question) the file salesdata.txt contains the dollar amount of sales that a retail store made each day for a number of weeks.Each line in the file contains 7 numbers,which are the sales numbers for one week.the numbers are separated by a comma. write a program that opens the file and processes its contents.the program should display the following >the total sales for the week >the average sales for each week >the total sales for all the week >the average weekly sales >the week number that had the highest amount of sales >the week number that had the lowest amount of sales