Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/sales-analysis-java/
- The file SalesData.txt (below) contains the dollar amount of sales that a retail store made each day for a numberof weeks. Each line in the file contains seven numbers, which are the sales numbers for one week.
- The numbers are comma delimited. 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 using mainly methods within or outside a class definition to open the SalesData.txt file
- and process its contents. The program should display the following on screen in the form of pop-ups.
- The same results should be duplicated in an output file that you will call SalesAnalysys.txt. Include SalesAnalysis.txt as part of your submission.
- • The total sales for each week
- • The average daily sales for each week
- • The total sales for all 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
- Download: http://solutionzip.com/downloads/sales-analysis-java/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement