-
Step 1
Describe in one sentence what the program should accomplish. Then, under that sentence, note the steps that will have to be taken to get the desired result. Use this guide to formulate the coding needed for the tasks. As a template, to build a website program that will calculate a person's Body Mass Index (BMI) will require these steps.
-
Step 2
Let a user view a form on the Web, input her height and weight and have the program display the result (Description of Program).
-
Step 3
Write the code to create a Web form to hold the program that will have a place for a user to input his height and weight, click on a command to calculate the provided values, and display the result. Add some explanatory information to tell the user what to do and what the results mean.
-
Step 4
Use the standard formula for calculating BMI, which is BMI equals the person's weight in pounds divided by the square of the height in inches and the result multiplied by 703. Mathematically this is expressed as (Weight / (Height * Height)) * 703.
Write this code using either JavaScript or VBScript. Each will take the two values provided by the user and then perform the necessary calculation. Save the result and test using a Web browser. Upload the files created above to your Web server and retest.
-
Step 5
Display the final result.

BMI Calculation Final Form