1,105,427 Community Members

Statistics Calculator (dynamic arrays)

Member Avatar
xikhari.some1behindu
Newbie Poster
7 posts since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I am currently working in a Statistics Calculator which should display mean, standard deviation, median and mode. I have the graphical interface
Sin_título
This one has a text box where you get to write the list and by clicking the button it stores the fist value and goes to the next and that goes on until you finish and click on an other button to operate the list of values. My question is the following,

How can I change the size of the arrrage according to the list they are inputting to the array?

Attachments Sin_título.png 193.48KB
Member Avatar
Momerath
Senior Poster
3,831 posts since Aug 2010
Reputation Points: 1,327 [?]
Q&As Helped to Solve: 664 [?]
Skill Endorsements: 19 [?]
Featured
 
1
 

Use a List<T> rather than an array. It will dynamically change its size as needed, and you can treat it as (and convert it to) an array.

Member Avatar
xikhari.some1behindu
Newbie Poster
7 posts since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

ohh thanks really :) i need to deliver this before date and i am in such a rush, thnaks

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: