- #1
SDNess
- 33
- 0
Ok, my latest assignment is to collect 8 different "types" of data from a set of inputted data. I am using a textbox for the user to input the data into a listbox by clicking on a command button. So the program will use 1 listbox, 1 textbox, multiple command buttons, and multiple labels (in which I want to display the computted results).
I have to calculate the mean, median, mode, standard deviation, minimum value, maximum value, upper quartile, and lower quartile of the inputted data. Each calcutation has its own command button. So far, I have figured out the mean by using a For...Loop. Easy enough. Also, I've found out how to arrange the inputted data chronologically in the listbox. Visual basic is a little weird when inputting data. I had to make it so that the integers from 1-9 have 0's in front on the left in the ten colum's spot.
Anyway, do you have any ideas that could jumpstart my thinking process. You don't have to program it for me, just tell me if I'm going in the right direction.
Most of the calculations are based off of the list box's "listcount" property or at least that is what I am guessing.
Note: my list box is called lstOrdered
Median - sometype of loop
Mode - similiarly...another loop that cheaks for repeating values?
Stand Dev - totally lost...
Min Val - something including the phrase: (Listcount + 1) - (Listcount) ?
Max Val - something inluding: (Listcount + 1) ?
Up Quartile - the top 25% of the data?
Lo Quartile - the bottom 25% of the data?
I have to calculate the mean, median, mode, standard deviation, minimum value, maximum value, upper quartile, and lower quartile of the inputted data. Each calcutation has its own command button. So far, I have figured out the mean by using a For...Loop. Easy enough. Also, I've found out how to arrange the inputted data chronologically in the listbox. Visual basic is a little weird when inputting data. I had to make it so that the integers from 1-9 have 0's in front on the left in the ten colum's spot.
Anyway, do you have any ideas that could jumpstart my thinking process. You don't have to program it for me, just tell me if I'm going in the right direction.
Most of the calculations are based off of the list box's "listcount" property or at least that is what I am guessing.
Note: my list box is called lstOrdered
Median - sometype of loop
Mode - similiarly...another loop that cheaks for repeating values?
Stand Dev - totally lost...
Min Val - something including the phrase: (Listcount + 1) - (Listcount) ?
Max Val - something inluding: (Listcount + 1) ?
Up Quartile - the top 25% of the data?
Lo Quartile - the bottom 25% of the data?