Question: Java Program Class Name: SalesReport (program file, output file,data file) Write a program that reads the sales amount in millions for 10 division (row) for

Java

Program Class Name: SalesReport (program file, output file,data file)

Write a program that reads the sales amount in millions for 10 division (row) for all 12 months (col) of the year for a XYZ Company. You must create a data file, the file will have all the sales figures in the range 1.00 to 99.99. You can decide how to organize the file. The program should output the following in the order specified by executing methods for each calculation.

Also, create 1D array of size 10 that will store the division names and 1D array of size 12 to store the month names.

1. Display the array by 10 * 12 values well formatted and organized

2. The total sales for the year

3. The average sales for the year

4. The total sales by each division

5. The total sales by each month

6. The average sales for each division

7. The average sales for each month

8. The division with highest sales for the year

9. The division with lowest sales for the year

10. The month with highest sales for the year

11. The month with lowest sales for the year

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!