Syllabus

Home

Class Resources

News

CS-100 In-Class Project: Body Mass Index


Instructions:

The form above is used to generate a table of Body Mass Index (BMI) values given a person's height in inches. The height is typed into the text box. The table contains ten rows of data ranging in weight from 100 to 200 pounds in increments of 10 pounds, for the specified height. An example output is shown above.

The formula for BMI is: BMI = ((weight in pounds) / (height in inches squared) ) times 703.

The table can be generated from each of the three buttons representing a different Visual Basic loop construct.

Downoad the zip file with the form here. (VB 2008) (VB 2012)