One way to estimate the height of a child is to use the following formula,which...
80.2K
Verified Solution
Link Copied!
Question
Basic Math
One way to estimate the height of a child is to use the following formula,which uses the height of the parents:Hmale_child = ((Hmother* 13/12) + Hfather)/2Hfemale_child = ((Hfather * 12/13) + Hmother)/2All heights are in inches. Write a function that takes as input parameters the gender of the child, height of the mother in inches, and height of the father in inches, and outputs the estimated height of the child in inches.The user should be able to input the heights in feet and inches, and the program should output the estimated height of the child in feet and inches. Use the integer data type to store the heights.
Answer & Explanation
Solved by verified expert
Get Answers to Unlimited Questions
Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!
Membership Benefits:
Unlimited Question Access with detailed Answers
Zin AI - 3 Million Words
10 Dall-E 3 Images
20 Plot Generations
Conversation with Dialogue Memory
No Ads, Ever!
Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!