Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions