This assignment is intended to see if youve learned the basic concepts talked about thus far in the lectures.

Program

BMI stands for Body Mass Index. It quantifies the amount of tissue mass (muscle, fat and bone) in an individual. It was first proposed by Adolphe Quetlet during World War 2 when the relationship between weight and cardiovascular disease became a significant point of study. It was an attempt to categorize a person as underweight, normal weight, overweight or obese based on the value obtained from the following formula: see image.

In the equation above, lb stands for pounds and in stands for inches.

In this assignment, you task is to build a BMI calculator, and goal calculator.

Your program will:

  • Ask for the users weight in pounds (no decimals)
  • Ask the user for their height in feet and inches (no decimals required)
  • Ask for the users target weekly weight change (should allow decimals)
  • Ask the user how many weeks they intend to continue with their plan
  • Show users start and end weight and BMI in a aligned table.
  • BMI should be shown to two decimal places, weight with no decimal places
  • You can format the table however you like, but the columns must be aligned for any reasonable data

All output should be clear and understandable

Sample Output:

BMI Calculator
--------------
What is your current weight in pounds (lb)?
195
What is your height? (in ft, inches), with a space between (e.g. 5 11)
5 8
What is your goal weight change per week? (lb)?
-2
How many weeks do you plan to continue this trend?
8
If you complete follow your plan:
Weight(lb) BMI
----------------------------
Start 195 29.65
End 179 27.21
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.