Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please program the following in Python Language. 1. Expand your BMI program from LAB-1 in two ways: Accept user input for both: the number of

Please program the following in Python Language.

image text in transcribed

image text in transcribed

1. Expand your BMI program from LAB-1 in two ways: Accept user input for both: the number of inches and, the weight in pounds. Output the BMI, along with its rating, i.e., Underweight, Normal weight, Overweight, or Obese Use https://www.nhlbi.nihgov/health/educational/lose wt/BM/bmicalc htme as your reference for determining which of the four ratings a BMI score should be given. Create a function bmi(inches,pounds) to perform the calculations and output. Your main program should ask the user for his or her height and weight, then call the function. To submit: Copy/paste your code (function header and function body, then main program), followed by each of the six calls and output, as shown below DO NOT mix the code or output in with the code and output from the other problem in this Lab! Keep the problems completely separate from each other! RESTART: /usersamp/Desktop/WINTER-201 /CIS-48/WEEK-3/bmi.py ===..,, Enter your height in inches, including decimal fractional parts: 67.75 Enter your weight in pounds: 120 BMI 18.378834718856335 : Underweight RESTART: /Users/mamp/Desktop/WINTER-2018/CIS-48/WEEK-3/bmi.py Enter your height in inches, including decimal fractional parts: 67.75 Enter your height in pounds: 121 BMI 18.531991666780137Normal weight RESTART: /usersamp/Desktop/WINTER-2018/C15-48/11EEK-3/bmi.py Enter your height in inches, including decimal fractional parts: 67.75 Enter your height in pounds: 163 BMI 24.964583815579854Normal weight RESTART: /users/mamp/Desktop/WINTER-2018/CIS-48/WEEK-3/bmi . py Enter your height in inches, including decimal fractional parts: 67.75 Enter your weight in pounds: 164 BMI 25.117748771503655 : Overweight RESTART: /Users/mamp/Desktop/WINTER-2018/CIS-48/WEEK-3/bmi.py ,,,,"# Enter your height in inches, including decimal fractional parts: 67.75 Enter your weight in pounds: 195 BMI = 29.86560648514154 Overweight RESTART: /Users/mamp/Desktop/WINTER-2018/CIS-40/WEEK-3/bmi py Enter your height in inches, including decimal fractional parts: 67.75 Enter your weight in pounds: 196 BMI 3e .018763361065346 : obese

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

Icdt 88 2nd International Conference On Database Theory Bruges Belgium August 31 September 2 1988 Proceedings Lncs 326

Authors: Marc Gyssens ,Jan Paredaens ,Dirk Van Gucht

1st Edition

3540501711, 978-3540501718

More Books

Students also viewed these Databases questions

Question

What are negative messages? (Objective 1)

Answered: 1 week ago