Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Description for Lab Test
# Mandaha Rolivhuwa
Originally: Scott Hazelhurst

This code takes as input a data file with the weight and height of individuals and computes the body mass index (BMI). The BMI of a person is the weight of a person in kilograms divided by the square of the height in metres. The program should then categorise the BMI according to these rules
* Less than 19: A
Expand Down
2 changes: 1 addition & 1 deletion bmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def ounces2pounds(x):
return x*16

def stones2pounds(x):
return x*14
return x*140


def weight2kg(stones,pounds,ounces):
Expand Down