Computer Science Canada

Arrays

Author:  Jessica359 [ Tue Apr 08, 2008 1:07 pm ]
Post subject:  Arrays

Allo,

We have jsut been introduces arrays and its still kinda iffy. We have to make a program using arrays that lets teh user choose how many numbers they want, they input numbers and then it outputs the median. I'm not sure what calculation to use.

I don't know if that makes any sense lol Confused
thanks Smile

Author:  Tallguy [ Tue Apr 15, 2008 12:28 pm ]
Post subject:  RE:Arrays

come on jess

Author:  Nick [ Tue Apr 15, 2008 2:14 pm ]
Post subject:  RE:Arrays

Turing Walkthrough

the median is the middle number so to find the middle of 10 you would divide it by 2 (10 div 2), the middle number of an array will be the number (after sorting) of the upper bound divided in half

Author:  Sean [ Tue Apr 15, 2008 2:14 pm ]
Post subject:  Re: Arrays

Well, for now, read this Walkthrough on Arrays

Edit: Oh, and the median is the middle number, so you will want to sort the numbers from least to greatest, or greates to least.


: