Question: Code in Java please Sales Analysis The file sales.txt on the blackboard contains the dollar amount of sales that a retail store mad each day
Sales Analysis The file sales.txt on the blackboard contains the dollar amount of sales that a retail store mad each day for a number of weeks. Each line in the file contains seven numbers, which are the sale numbers for one week. The numbers are separated by a comma. The following line is an exampl from the file: 1245.67, 1490.07, 1679.87, 2378.46, 1783.92, 1468.99,2059.77 Write a 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 . The average weekly sales The week number that had the highest amount of sales. The week number that had the lowest amount of sales. Your program will be graded according your adherence to the following specifications: Program compiles and runs without errors. Appropriate data types and descriptive names are chosen for all variables and constants The program is properly indented
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
