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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started