Question: Please program this question in Python 3 and please have the program ask the user for input first, followed by calculations and finally having the
Please program this question in Python 3 and please have the program ask the user for input first, followed by calculations and finally having the function by call print out the results.
Also please use this calculation: BMI = weight * 703 / height ** 2

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 as your reference for determining which Use https://www.nhibinin.gov/health/educational/lose wt/BMI/bmicalc.htm 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! Enter your height in inches, including decimal fractional parts: 67.75 Enter your weight in pounds 120 BMI18.378834710856335 Underweight ======= RESTART : /Users/mamp/Desktop/WINTER-2018/C15-40/WEEK-3/bmi . py======= Enter your height in inches, including decimal fractional parts: 67.75 Enter your weight in pounds: 121 BMI 18.531991666780137 Normal weight RESTART : /Users/mamp/Desktop/WINTER-2018/C15-40/WEEK-3/bmi . py Enter your height in inches, including decimal fractional parts: 67.75 Enter your weight in pounds: 163 BMI 24.964583815579854 : Normal weight ======= RESTART : /Users/mamp/Desktop/WINTER-2018/C15-40/WEEK-3/bmi . py======= Enter your height in inches, including decimal fractional parts: 67.75 Enter your weight in pounds: 164 BM 25.117740771503655 : Overweight Enter your height in inches, including decimal fractional parts: 67.75 Enter your weight in pounds 195 BMI29.86560640514154 Overweight ======= RESTART : /Users/mamp/Desktop/WINTER-2018/C15-40/WEEK-3/bmi . py======= Enter your height in inches, including decimal fractional parts: 67.75 Enter your weight in pounds: 196 BMI 30.018763361065346 : Obese
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
