Question: (PYTHON) I'm having trouble writing a BMI code using if, else, and elif statements. I want the program to begin by asking the user if

(PYTHON) I'm having trouble writing a BMI code using if, else, and elif statements. I want the program to begin by asking the user if they want to use the United States metric system or the metric system. I DO NOT want it to be converted. Then, according to what the user inputs, I want it to calculate the user's height and weight with the prefer metric system.

code must include:

1. asks user what system they prefer, american or metric.

2. according to what the user answers, have the program calculate using the system that the user chose.

3. void if user does not enter a valid choice and have them try again.

4.. ask users for their measurements.

5. if their measurements are abnormal, have program report the error and asks users to try again.

6. once calculated, show results. < 18 is underweight, 18 - 25 normal, > 25 is overweight.

thank you!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!