Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Python code) BMI can be calculated in Metric or USA/English system. Note wed like the user to choose whether to use USA/English system or Metric

(Python code) BMI can be calculated in Metric or USA/English system. Note wed like the user to choose whether to use USA/English system or Metric system. A BMI scale can be used to determine an individuals fitness status. Normally the scale is related to age, sex etc. For simplicity, we just use 18-25 as normal range, higher than that considered as overweight and lower than that considered as underweight. Please provide the user some feedback based on the calculated BMI. Provided test cases: (1) USA 155 lbs, 70 inch; (2) USA 172 lbs, 68 inch; (3) Metric 75 kg, 1.83m; (4) Metric 51.5 kg, 1.68m. Testing requirements: complete the given four test runs first, then 4 additional test runs (one using USA formula, one using metric formula, two with abnormal inputs, e.g. 0 for height or negative value for weight etc. ) of your choice total 8 test cases.

image text in transcribed

BMI=703height2(in2)weight(Ib)

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

Recommended Textbook for

More Books

Students also viewed these Databases questions