Question: g . Write a code which receives input from the user for gender as either male ( m / M ) or female ( f

g. Write a code which receives input from the user for gender as either male (m/M) or female (f/F), Make sure that your code recognizes both the small and capital letter, and also receives their age in years, weight in pounds, and height in inches. Write a piece of code which calculates BMR based on the following formulas:
Imperial formula for men
BMR =66.47+(6.24\times weight in pounds )+(12.7\times height in inches )(6.755\times age in years )
Imperial formula for women
BMR =655.1+(4.35\times weight in pounds )+(4.7\times height in inches )(4.7\times age in years )

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 Programming Questions!