Search for question
Question

2-D Array Programming Question

Class Name: Sales Report

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.

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

The total sales for the year

The average sales for the year

The total sales by each division

The total sales by each month

The average sales for each division

The average sales for each month

The division with highest sales for the year

The division with lowest sales for the year

The month with highest sales for the year

11. The month with lowest sales for the year

2.

3.

4.

5.

6.

7.

8.

9.

10.

Fig: 1