Question: Write a Python program, with explanatory comments in the code, that does the following: a. Includes header comments as described in the Commenting your programs
Write a Python program, with explanatory comments in the code, that does the following: a. Includes header comments as described in the Commenting your programs document in the Course Information module. b. Displays a short description of what the program does. C. Asks for, and reads, the user's name. d. Asks for, and reads, the user's height (in feet and inches) and body weight (in pounds). Your program should accept decimal fractions, not just integers, for inches and weight e. Computes and displays the user's height in inches, along with a brief explanation. f. Computes the user's Body Mass Index according to the formula BMI = weight * 703 / (height * height) ... where weight is in pounds and height is in inches. g. Displays the user's name and the BMI value to 3 decimal places, with a brief explanation. To limi the number of decimal digits displayed, use the format function or the round function, not th .format( method. Do not use curly braces { } anywhere in your print statement. h. Turn in your program to the appropriately named Brightspace assignment folder. mple output: This program computes Body Mass Index (BMI) What is your name? Eric Hello Eric Enter your weight in lbs: 180 Enter your height in feet (no inches): 5 ... and now the inches: 11 Your height in inches is 71.0 Eric , your BMI is 25.102162269390995 Rounding to 3 decimal places, we get 25.102
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
