Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using python Question 1: (Textbook P82, Q40): Body mass index (BMI) is a number calculated from a person's weight and height. According to the Centers

using python
image text in transcribed
Question 1: (Textbook P82, Q40): Body mass index (BMI) is a number calculated from a person's weight and height. According to the Centers for Disease Control and Prevention, the BMI is a fairly reliable indicator of body fatness for most people. The formula for BMI is: weight/height? (where weight is in kilograms and height is in meters) A. Write a program that prompts for metric weight and height and outputs the BMI. For example, an execution could look like this: Please enter weight in kilograms: 50 Please enter height in meters: 1.58 BMI is: 20.0288415 B. Write a program that prompts for weight in pounds and height in inches, converts the values to metric, and then calculates the BMI. Note: 1 pound is equal to 0.453592 kilograms and 1 inch is equal to 0.0254 meters. For example, an execution could look like this: Please enter weight in pounds: 135 Please enter height in inches: 71 BMI is: 18.8284 9431

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

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions

Question

8. Do the organizations fringe benefits reflect diversity?

Answered: 1 week ago

Question

7. Do the organizations social activities reflect diversity?

Answered: 1 week ago