H-E-L-P!!! please....
-
hi!! i'm just a newbie here... sorry for the disturbance... but i really need your help guys... i need to do a project using these physics equation... sad to say, i dont know how to do it in visual basic 6.0.. its pretty hard for me to do the coding... please help!! 1) K.E.=1/2mv^2 2) G.P.E.=mgh 3) P=Fd/t or P=Fv i know its pretty simple for you guys... but for me.. i just can't understand these things.... so i hope you guys can help me... thanks a bunch!!!
-
hi!! i'm just a newbie here... sorry for the disturbance... but i really need your help guys... i need to do a project using these physics equation... sad to say, i dont know how to do it in visual basic 6.0.. its pretty hard for me to do the coding... please help!! 1) K.E.=1/2mv^2 2) G.P.E.=mgh 3) P=Fd/t or P=Fv i know its pretty simple for you guys... but for me.. i just can't understand these things.... so i hope you guys can help me... thanks a bunch!!!
Heck, I'd love to help if I understood what the heck the equations meant. Can they be expressed like A x B + 1 + 3 + (C / 4) type of thing? Your topic is VB6 / VB.NET, I dont have VB6 on my system anymore, so if you could take this in VB.NET I'll happily squirt the code back to you after some clarification of what that stuff means 8-) Nursey
-
hi!! i'm just a newbie here... sorry for the disturbance... but i really need your help guys... i need to do a project using these physics equation... sad to say, i dont know how to do it in visual basic 6.0.. its pretty hard for me to do the coding... please help!! 1) K.E.=1/2mv^2 2) G.P.E.=mgh 3) P=Fd/t or P=Fv i know its pretty simple for you guys... but for me.. i just can't understand these things.... so i hope you guys can help me... thanks a bunch!!!
Hey, Same as cnurse here, I don't understand exactly what you meen but I assume you are looking for a way to use advanced calc functions. I am no math wizz and BY FAR no physics wizz so I can't tell you step by step how to get those calculations by any meens but if it helps I can tell you that there are no advanced math functions in vb (or any language i know of) so you will have to work out how it is done step by step useing basic functions (+ - * and /)and do it line by line. For eg. if you want to multiply by a percentage vb doesn't have a way to say 100 plus 50% so you will have to devide the 50 (50%) by 100 then multiply it dim number1 as integer = 100 dim number2 as integer = 50 dim result as integer number2 = number2 / 100 result = number1 * number2
-
Hey, Same as cnurse here, I don't understand exactly what you meen but I assume you are looking for a way to use advanced calc functions. I am no math wizz and BY FAR no physics wizz so I can't tell you step by step how to get those calculations by any meens but if it helps I can tell you that there are no advanced math functions in vb (or any language i know of) so you will have to work out how it is done step by step useing basic functions (+ - * and /)and do it line by line. For eg. if you want to multiply by a percentage vb doesn't have a way to say 100 plus 50% so you will have to devide the 50 (50%) by 100 then multiply it dim number1 as integer = 100 dim number2 as integer = 50 dim result as integer number2 = number2 / 100 result = number1 * number2
sorry didnt mean to misled you guys... what i meant was, how do you trun these equations into vb samples... 1)Kinetic Energy=1/2*mass*velocity squared 2)Gravitational Energy=mass*acceleration due to gravity*height 3)Power=work(that is mass*acceleration due to gravity)*distance/time i know its dumb for me to ask... but forgive me guys... thanks a bunch for helping me out.... i need your help badly.... naikei
-
sorry didnt mean to misled you guys... what i meant was, how do you trun these equations into vb samples... 1)Kinetic Energy=1/2*mass*velocity squared 2)Gravitational Energy=mass*acceleration due to gravity*height 3)Power=work(that is mass*acceleration due to gravity)*distance/time i know its dumb for me to ask... but forgive me guys... thanks a bunch for helping me out.... i need your help badly.... naikei
OK, thanks for the clarification.... A = B x C in VB Speak.... Sub DoSomethingClever() Dim A as integer ' Here is an integer number, can't handle decimal parts A = 10 * 10 ' A = 100 i.e. A = 10 x 10 the * is x in progrmaming terminolgy Dim B as integer B = A * 10 ' Now B = 1000 get it so far? Dim C as integer C = B / 100 ' Now C = 10 Dim MyWage as Single = 100.55 ' Make a floating point variable and assign it value in 1 step MyWage = MyWage * 1000 ' I wish! No wage is multiplied and stored back into the variable as 100550.00 End Sub You can do things like this now A = A / 2 ' A is divided by 2 A = (B*B) ' A = B^2 A = B + C A = A - B All of the above are things you can type into VB literally and they will work. I think there is a mathematical function called power or pwr which raises a number to a given power. If you are in VB.NET look up the Math namespace as it contains all the cos sin and tan functions to name a few. This ain't the answer to your functions but you can work it out now. If not then shout for more help. I think you do need to read a little about Sub's and Function's and where to use them. For example private function MyAge () as integer Dim a as integer = 21 Return a End Function A short example of creating a variable, assigning it a value and returning that value, therefore... Dim B as integer = MyAge Assigns B the value 21, because VB calls the MyAge function which "Returns" the value of a which = 21. Clear as mud, I know, but I'm trying to help you find the answer rather than just spew lines of code that you might not understand if things go wrong. Nursey