Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Required 1. In this quiz, you are going to write codes that calculate standard weight for male and female based on his or her height.
Required 1. In this quiz, you are going to write codes that calculate standard weight for male and female based on his or her height. 2. The standard weight formula: male: height (in meters) * height * 48.5 (lbs) female: height * height * 46 (lbs) *For those who are not familiar with meters, convert the height in feet/inches to meters on Google. 3. Conditions: a. First, define a function. Let's call it "std_weight" For example, def std_weight_ b. input variables are gender and height c. round to two decimal places for weight d. Sample output statement: "The standard weight for 1.75m male is 148.55lbs."
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started