Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with this python coding assignment! Please help. Program Specifications Write a program that computes body mass index (BMI) values and reports the number

Need help with this python coding assignment! Please help.

image text in transcribed

Program Specifications Write a program that computes body mass index (BMI) values and reports the number BMI values in each weight class. The program should ask many BMI values the user wants calculated and then proceed to ask for the weight and height values to calculate the BMI. The program prints out the total number of BMI values in each weight class. Sample run The user input are all the values of height and weight. Enter the number of persons: 4 === Person 1 === Height (in inches): 73.5 Weight (in pounds): 230 === Person 2 === Height (in inches): 71 Weight (in pounds) : 220.5 === Person 3 === Height (in inches): 63 Weight (in pounds) : 120 === Person 4 === Height (in inches): 63 Weight (in pounds): 90 Total Underweight: 1 Total Normal: 1 Total Overweight: 1 Total Obese: 1 Required program decomposition We will not specify the decomposition to follow for this lab. However, the last test case will check that each function contains at most 10 lines of code. This six-line limit includes the function definition line. Comment lines or empty lines don't count toward the ten-line limit. Notes All statements must be part of a function definition. You must only use features of Python that have been described in class. You may re-use the code in the example of calculating the two BMI values that was described in class

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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions