0
Please can you help me with this assignment, I'm new to java.
Write a java program that returns the mean, median and mode of 20 numbers, entered by the user.
3 Réponses
+ 4
We are not here to do your assignment. It's for you. So do self.
+ 4
[2,6,5,8,4,5,7]
Mean -> (2+6+5+8+4+5+7)/7
Median -> sort the number in ascending order and then find the middle element.
If the count of elements is even in number then take the two middle elements and find the average.
Mode -> The element occurring maximum number of times.
Come up with a code and then maybe you can ask for help.
0
Okay thanks