numeric calculation

metalweenis

Member
Joined
Sep 29, 2006
Messages
5
Programming Experience
Beginner
I'm making a form to calculate the final awnser of a problem, but I dont know the commands to make it possible. I need to do it immediatly so please help!!!
The form is set up like this :


KM at first fillup: (textbox) CLEAR
KM at last fillup: (textbox)
Litres at last fillup: (textbox) CALCULATE
Consumption: (textbox) Litre/100KM
EXIT

the value for first fillup is 10000
for last fillup is 12000
litres last fillup is 10
I need to figure out how to get the calculate button to do this equation for me, does anyone know the exact commands i should type??? I need this awnser quick!! someone experienced help please!!! THANK YOU!
 
To make it more clear, this is what I need help with.



KM at first fillup: (textbox)
KM at last fillup: (textbox)
Litres at last fillup: (textbox) CALCULATE
Consumption: (textbox) Litre/100KM
 
so add 3 NumericUpDown controls and name them:
nudKMFirst
nudKMLast
nudLitres

for all three NumericUpDown controls, set the Decimal property to 4 to allow 4 digits after the decimal point

also add a Label, i'd name it: lblResults
then add a button and name it btnCalculate
now all you need to do is is calculate the Consumption

since this sounds like homework, i've given you a start but it's up to you to show your attempts at the calculation(s)
 
Back
Top