How to i solve this java senario??
I am trying to teach myself java at the moment so i would love to know how to complete this scenario in java....i am trying to use eclipse!? thanks! x
The production department of a local manufacturer would like to produce statistics, including histograms, for the productivity of its manufacturing staff in 2008 and 2009. The company is involved in the manufacture of utility vehicles for the construction industry. Staff work in shift teams comprised of 20 employees.
Write a program to read the amount of items produced by each shift team for the two years, generate a histogram for each year and the statistics. The details are given below:
• For each year calculate
o The average amount of items produced;
o The shift team in each year with the highest amount of items produced and the amount; and
o The shift team in each year with the lowest amount of items produced and the amount.
• Over the two years
o The average amount of goods produced for each shift team
Your program should include the following methods:-
A method readStats () which takes an array of integers as a parameter to hold the amount produced by each shift team for one year. It should read the quantities of items produced from the keyboard into the array.
A method calculateandDisplayStats() which takes an array of integers holding the amount produced by each shift team for one year and displays the statistics for that year. This method should call other value methods:
one to return the average amount produced for the year
one to return the position in the array of the shift team with the highest productivity
one to return the position in the array of the shift team with the lowest productivity.
A method yearlyStats() which will take two arrays of integers representing the amount produced for each year and display the average amount produced for each shift team.
A method printChart() which takes an array of integers as a parameter holding the amount produced by each shift team for one year and prints a histogram for that year.