arrays
-
yeah i'm not too good at averaging either just watching....but im trying I set it up like this single = hit double = hit triple = hit home run = hit stike = miss ground out = miss fly out = miss walk = n/a sacrifice bunt = n/a sacrifice fly = n/a hit by pitch = n/a Then I put it If "hit" then inthits +1 intatbats +1 n/a the same and miss the same all toogether its inthits/intatbats while intNA = 0 then no offical atbats with an average of 0 still
okay I think i got what you are saying. You can start a Window Form...New->Project->vb->WindowApplication i can show you how to make this program with a window form care to see?
-
okay I think i got what you are saying. You can start a Window Form...New->Project->vb->WindowApplication i can show you how to make this program with a window form care to see?
-
absolutely...I'm so stuck it's ridiculous. I started with the window form having the user enter the data into a textbox but after that I was stuck
okay i will make it....and send you the code for it.
-
absolutely...I'm so stuck it's ridiculous. I started with the window form having the user enter the data into a textbox but after that I was stuck
is this a game? or a caulation....because i am coding the caculation program
-
is this a game? or a caulation....because i am coding the caculation program
-
its a calculation program... actually do you think a select case statement would be better or the array?
array all the way well i was thinking u have a textbox then when u click the button it will add the integer(number) to a listbox and to a arrayLIST (list is important)..the we will have a caculating button....and it will take all in the array list and average it out. do u have aol aim or msn address? it will be easier to explain then back and forth on a form.
-
First, I know nothing of any games that have a batting average, you should assume that people don't know this. I am assuming you are talking about baseball, but I don't know the game. Anonymous wrote: 'Step through the array and add the values For i = 0 To strPlateAppearance.Length - 1 total += strPlateAppearance(i) Next 'Divide by the number of elements in You don't say what strPlateAppearance is? Where is outcome in the calculation? Where does total come from? You really need to provide all the relevant code.
Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums
that's true...I didn't provide that and I shouldn't assume everyone knows baseball either. Plate appearance will have an impact on batting average either hit, miss or n/a in example a test case of "single" double" "strike out" the function should return 2/3 = .666 and "walk" "double" and "stike out" it should return 1/2 = .5 basically a user interface that ties everything together A function and form module
-
that's true...I didn't provide that and I shouldn't assume everyone knows baseball either. Plate appearance will have an impact on batting average either hit, miss or n/a in example a test case of "single" double" "strike out" the function should return 2/3 = .666 and "walk" "double" and "stike out" it should return 1/2 = .5 basically a user interface that ties everything together A function and form module
ouch lol ...so a triple and a homerun and a strike out will equal somethin else lol
-
array all the way well i was thinking u have a textbox then when u click the button it will add the integer(number) to a listbox and to a arrayLIST (list is important)..the we will have a caculating button....and it will take all in the array list and average it out. do u have aol aim or msn address? it will be easier to explain then back and forth on a form.
-
kk chat there