Write a function to calculate a person’s body mass index given his/her weight and height.
What will be an ideal response?
Note: It is acceptable to assume that the weight has been given in kilograms and the height in meters for this question, as it is not specified otherwise.
```
def calculateBMI(weight, height):
return weight/(height*height)
```
Note: However, if one does input the values in feet and pounds then the function should look more like:
```
def calculateBMI(weight, height):
height = height/3.2808
weight = weight/2.2046
return (weight/(height*height))
```
You might also like to view...
Because Office Web Apps use the standard file formats of the desktop version of Office 2010, you will have ________ viewing of documents.
a. high-fidelity b. low-resolution c. restricted d. pixelated
In a linked list, the link component of each node is a(n) ____________________.
Fill in the blank(s) with the appropriate word(s).
Which of the following situations represents a serious control weakness?
A. Timekeeping is independent of the payroll department. B. Paychecks are distributed by the employees immediate supervisor. C. Time cards are reconciled with job tickets. D. Personnel is responsible for updating employee records, including creation of records for new hires.
A computer connected to a remote hard disk via iSCSI is referred to as an iSCSI initiator.
Answer the following statement true (T) or false (F)