< Back

Post Lab 3

In this post-lab you will demonstrate your understanding of naming values in Python.

Details

Body Mass Index (BMI) is a measurement devised in the 1800's, as a way of analyzing an individual's body shape, as it relates to their height and weight. The BMI of a person is computed by dividing a person's weight, in kilograms, by the square of the person's height, in meters.

Create a Python program that when run prints the BMI of a person that is 1.8 meters tall and weighs 81 kilograms. The program must have the following variables:

Example

$ python3 bmi.py
The BMI of a person 1.8 meters tall and weighing 81 kilograms is 25.0 .

Submission

Submissions for post labs are to be done via the inquire system. Go to http://inquire.roanoke.edu/ You should see a section for post labs. Submit your .py file to the appropriate post lab location.