Sales Analysis
If you have downloaded the book’s source code from www.pearsonhighered.com/gaddis, you will find the file SalesData.txt in the Chapter 08 folder. This file contains the dollar amount of sales that a retail store made each day for a number of weeks. Each line in the file contains seven numbers, which are the sales numbers for one week. The numbers are separated by a comma. The following line is an example from the file:
1245.67, 1490.07, 1679.87, 2378.46, 1783.92, 1468.99, 2059.77
Write a program that opens the file and processes its contents. The program should display the following:
• The total sales for each week
• The average daily sales for each week
• The total sales for all of the weeks
• The average weekly sales
• The week number that had the highest amount of sales
• The week number that had the lowest amount of sales
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.