Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

11. Sales Analysis

bryansuavo
bryansuavo 


The file SalesData.txt, in this chapter's source code folder, contains the dollar amount of sales that a retail store nude each day for a number of weeks. Each line in the file contains seven numbers, which arc the sales numbers for one week. The numbers arc 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 .1 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 • Hie average weekly sales • The week number that had the highest amount of sales • Hie week number that had the lowest amount of sales Attachments Tags Clarifications

Answers