|
Well by now you should have had your simple math calculator done and dropped on the z: drive. Today was an exercise in bettering your math skills and working with order of operations in the code. You will need to create a simple form with text boxes to enter all of the data to do a little hot rod math. The minimum formulas you will use are:
Calculate HP From ET and Weight
HP = (Weight / ((ET/5.825)^3))
Calculate HP From MPH and Weight
HP = (((MPH / 234)^3) * Weight)
Formulas for MPH RPM gears & tires
mph = (rpm x tire diameter) / (gear ratio x 336)
rpm = (mph x gear ratio x 336) / tire daimeter
gear ratio = (rpm x tire diameter) / (mph x 336)
tire diameter = (mph x gear ratio x 336) / rpm
If you want to put any more formulas into your calculator by all means please do so. I will give extra credit if you are successful in getting them to work. If you didn't get a copy of the formulas pdf I have place it in the downloads section. Not due Thursday, BUT you better come to class having tried it and not starting out from scratch. |