VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Body Mass Index Calculator

by Varun Godbole (15 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Mon 11th December 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Body Mass Index Calculator

Rate Body Mass Index Calculator



w = Val(weight.Text)
m = Val(hgt.Text)
h = m ^ 2

bmi = w / h
Text1.Text = Str$(bmi)

bodymi = Text1.Text

Select Case bodymi

Case 0 To 20

Comment.Caption = "You are very underweight"

Case 21 To 25

Comment.Caption = "Your weight is normal"

Case 26 To 30


Comment.Caption = "You are overweight"

Case 31 To 35

Comment.Caption = "You are obese"

Case 36 To 40

Comment.Caption = "You are very obese"

Case 41 To 60

Comment.Caption = "You are extremely obese"

End Select

End Sub


Download this snippet    Add to My Saved Code

Body Mass Index Calculator Comments

No comments have been posted about Body Mass Index Calculator. Why not be the first to post a comment about Body Mass Index Calculator.

Post your comment

Subject:
Message:
0/1000 characters