Mean, median and mode in arrays

Hey guys, I need a bit of help with arrays.
As far as we have been taught, I'm still at the level of array initialization.

Now we were tasked to code a program that arranges the data in asc/desc order and gets the mean, median, and mode.

It would be great if you could help me out, thanks. Have a great day.
Please note that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.


Initialization of an array only? No indexing?

Nothing about sorting algorithms?

If I have, say 7 numbers, how should I calculate mean, median and mode for them?
Topic archived. No new replies allowed.