Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Arrays
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jessica359




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Tallguy




PostPosted: Tue Apr 15, 2008 12:28 pm   Post subject: RE:Arrays

come on jess
Nick




PostPosted: 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
Sean




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: