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.

2nd Mar 2020, 4:28 PM
Mubarak Isah
Mubarak Isah - avatar
3 Answers
+ 4
We are not here to do your assignment. It's for you. So do self.
2nd Mar 2020, 4:35 PM
A͢J
A͢J - avatar
+ 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.
2nd Mar 2020, 4:36 PM
Avinesh
Avinesh - avatar
0
Okay thanks
13th Mar 2020, 5:19 PM
Mubarak Isah
Mubarak Isah - avatar