The Mosteller Formula is often used by doctors and dieticians to estimate the surface area of a person's body given their height and weight. The formula is as follows, where height is assumed to be in centimeters, weight is in kilograms, and surface area is in square meters:
Create a Web page named surface.html that calculates a person's body surface area using this formula. The page should have text boxes where the user can enter the person's weight (in pounds) and height (in inches). At the click of a button, a function should be called to calculate and display the surface area (in square feet) in a page division.
Since the Mosteller Formula is defined using metric values, you will need to load the convert.js library in the HEAD of the page in order to perform the required conversions. In particular, you will need to convert the user inputs from pounds to kilograms and from inches to centimeters before calculating the surface area using the Mosteller Formula. Once you have the area in square meters, you will need to convert it to square feet before displaying the result in the page.
```
Mosteller Formula
Height: inches
Weight: pounds
```
You might also like to view...
JavaScript converts a number to a string format automatically if the number needs to be displayed as text.
Answer the following statement true (T) or false (F)
Pseudocode uses indentation and the keywords End If to define the scope.
Answer the following statement true (T) or false (F)
What file extension do compressed files normally use?
A) COM B) ZIP C) WKS D) INF
A picture added to the worksheet background will show on screen and will also print.
Answer the following statement true (T) or false (F)