FIT   100
© Copyright University of Washington 1999-2000
Adding Parameters
vThe body mass problems can be fixed without dieting
vIntroduce parameters ...
v
v
v
vFormal parameters are part of the formal definition
vFormal parameters are “declared” in the parenthesized list following the procedure name
vTo call the procedure, give the actual parameters
Private Sub BMI(bodyMass As Double, weightLBS As Double, heightIN As Double)
    bodyMass = 4.89 * weightLBS / (heightIN/12) ^ 2
End Sub
Call BMI(BMIndex, BMIweight, BMIheight)
BMIndex = 4.89 * BMIweight /(BMIheight/12)^2