Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

2.7 Identify how privacy legislation impacts employees.

Answered: 1 week ago