Problem

Sales Analysis The file SalesData.txt , in this chapter’s source code folder, con...

Sales Analysis

The file SalesData.txt , in this chapter’s source code folder, 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:

2541.36,2965.88,1965.32,1845.23,7021.11,9652.74,1469.36

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

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT