JAVA PROGRAMMING ( HOMEWORK ON ARRAY)

kevin_225
homework_java.pdf

HOMEWORK

1.) Work with two-dimensional arrays, loops, methods, setters, getters, constructors

and file reading operations (setSales) to calculate the Quarterly Sales Statistics for

a company. Make the employee enter 4 quarterly sales figures for 6 divisions of

the company.

Utilize two or more classes to display the following data for each quarter:

 A list of the Sales figures by division.

 Each division’s increase or decrease from the previous quarter (this will not be

displayed for the first quarter).

 The total sales for each quarter.

 The average sales for all divisions that quarter.

(Hint: Use Filereader class to read all the Sales values for the txt file to be made

{place txt file in project folder to run it})

Note: The Sales.txt file should have values as follows: (Below)