McRat
01-09-2009, 07:48 PM
This is a simple calculator written in BASIC for drag racing.
Can anyone translate this to PHP or point me to a good tutorial?
---------------------------------------------------
CONST Loss = .75 'Drivetrain loss
CONST Ex = .33333333 'cubic curve exponent
CONST ETconstant = 5.825 'corrects units and adjusts
CONST MPHconstant = 234 'corrects units and adjusts
INPUT "What is your raceweight"; lbs 'get keyboard input
INPUT "What is your rear wheel HP"; rwhp 'get keyboard input
hp = rwhp / loss 'calculate new hp variable
PRINT "Estimated ET is: "; (lbs/hp)^Ex * ETconstant 'Calc
PRINT "Estimated MPH is: "; (hp/lbs)^Ex * MPHconstant 'Calc
-----------------------------------------------------------------------------------------------------
Then I need to figure out how to imbed it in our vB board in our drag race forum.
Can anyone translate this to PHP or point me to a good tutorial?
---------------------------------------------------
CONST Loss = .75 'Drivetrain loss
CONST Ex = .33333333 'cubic curve exponent
CONST ETconstant = 5.825 'corrects units and adjusts
CONST MPHconstant = 234 'corrects units and adjusts
INPUT "What is your raceweight"; lbs 'get keyboard input
INPUT "What is your rear wheel HP"; rwhp 'get keyboard input
hp = rwhp / loss 'calculate new hp variable
PRINT "Estimated ET is: "; (lbs/hp)^Ex * ETconstant 'Calc
PRINT "Estimated MPH is: "; (hp/lbs)^Ex * MPHconstant 'Calc
-----------------------------------------------------------------------------------------------------
Then I need to figure out how to imbed it in our vB board in our drag race forum.