Gender: required, default value is "Male".
Height: required, number field is greater than 0.
Weight: required, number field is greater than 0.
When the user clicks the "Clear" button, The system will clear the input fields.
When the user clicks the "Calculate" button:
• If "Age" is blank, Message Box will be shown "Please provide an age between 2 and 120".
• If "Age" data input is a number but not in range, Message Box will be shown "Inputdata for Age is out of range!".
Similar validation for "Height" and "Weight" text box.
• BMI (kg/m²) = ("Weight" * 10,000) / ("Height" * "Height")
• If 20 Age 120, Message Box will be shown "BMI for adults = <BMI> kg/m²<Classification>" (<Classificattion> will be replaced by the value according to the BMI table for adults)
BMI table for adults, age > 20
Classification
BMI range - kg/m²
Severe Thinness
<16
Moderate Thinness
16-17
17
105
MLA TLinnang
Close
+ 100%
Zoom