Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using python, second pic is what it should look like 1. Rewrite the program to create a function that calculates BMI. The function takes in

using python, second pic is what it should look like
image text in transcribed
image text in transcribed
1. Rewrite the program to create a function that calculates BMI. The function takes in two parameters (weight and height) and returns BML. 2. Create a second function that determine the level based on BMI. The function takes in one parameter (BMI) and returns corresponding level. 3. If the user enters incorrect input (non-numeric-looking input), your program should stop and provide an explanation. You can decide whether integer or float data type is appropriate. 4. We have a list of people. They are Max, Jack, and Joey. If you like you can make up your own list. Testing data are provided. We would like to go through the list, for each person, we enter information, calculate BMI, and display the level based on their BMI. ISM 301 Winter 2023 When outputting the BML, you can choose to format it with 2 decimal points. 5. At the end, we will show a summary, how many people, average BML, and highest percentage. Welcome to Healthy 2023! Enter weight for Max>89 Enter height for Max>45 Max BMI is 30.90 at level of OW Enter weight for Jack>105 Enter height for Jack >64 Jack BMI is 18.02 at level of UW Enter weight for Mary>120 Enter height for Mary>62 Mary BMI is 21.95 at level of OK m=me-Summry=-ww. Number of members is 3 Average BMI is 23.62 Highest BMI is 30.90

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

Students also viewed these Databases questions

Question

7. Are most people creative?

Answered: 1 week ago

Question

e. What do you know about your ethnic background?

Answered: 1 week ago

Question

b. Why were these values considered important?

Answered: 1 week ago