Need help in solving this assignment problem question ....
I know this is a last resort but i need help from people who know JAVA cause I have just been given this assignment to do in java but i can't make head or tail of it so if you guys could help me out here i would appreciate it tremendously I am being honest i am really **** at JAVA and this assignment is due in for the 16th of december 2005. And also how do yu round an interger to nultiples of 5 that is something i dont understand. Looked in text books and stuff and still nothing. I ve got the basics for calculating the average that i can do but as for the rest e.g. counting specific intergers in an array i am lost there. would really appreciate the help on this .
Aims
This assignment allows students to demonstrate the ability to write and test a java program using:
selection and repetition control constructs
arrays
methods
General
At the University of Poppleton student feedback on modules is achieved using a questionnaire. For each question students are asked to record an integer value in the range 1 to 5 with 1=Poor, 2=Fair, 3=Average, 4=Good, 5=Excellent. For each question an average mark is computed, and a summary produced showing the number of 1s, number of 2s, etc.
Task
Write a method that reads in an collection of integer scores from the keyboard, with each score in the range 1-5, output the average, rounded to 1 decimal place, and outputs the number of each score to the nearest multiple of 5.
For example, if the scores returned are {3, 4, 2, 3, 3, 3, 4, 3, 3, 3, 4, 1, 1, 4}, the average is 41/14=2.9. There are
2 scores of 1,
1 score of 2,
7 scores of 3,
4 scores of 4, and
0 scores of 5.
Taking each of these in turn:
the nearest multiple of 5 to 2 is 0,
the nearest multiple of 5 to 1 is 0,
the nearest multiple of 5 to 7 is 5,
the nearest multiple of 5 to 4 is 5, and
the nearest multiple of 5 to 0 is 0.
Hence the values output should be
0 0 5 5 0
(Rounding to the nearest multiple of 5 was employed in the most recent national Student Satisfaction Survey.)
To solve this problem you are recommended to provide the following methods:
a method that takes an array of integers and returns the average, as a floating-point number
a method that takes a floating-point number as a parameter and outputs that number rounded to one decimal place
a method that takes an array of integers as a parameter, together with a single integer, and returns the number of times the single integer appears in the array
a method that takes an integer number as a parameter and outputs that number rounded to the nearest multiple of 5

