Question: Write a program named SalesAnalysis.java that utilizes the attached file named SalesData.txt . This file has seven double values on each line that represent the

Write a program named SalesAnalysis.java that utilizes the attached file named SalesData.txt. This file has seven double values on each line that represent the sales for each day of a week at the JavaTools company. Each line represents a different week.

Using good method design, write a program that will read the values into a collection of your choice. The output should be the overall daily average for all sales (add up the total for all of the sales and divide by the number of sales that there were). If correctly done, your output should be something like (this is not the correct answer)

The average is $3541.25

SalesData.txt ?

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 1233.55,3454.55,6765.77,8765.23,3425.76,2222.11,3432.44 2433.55,2766.34,4534.23,3232.43,1000.00,3423.12,3423.22

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!