Write a C program that will ask the user to enter the lengths of a femur bone and a humerus bone from the same person. The program will compute the heights for both males and females from each bone and print those values. Problem: An adult skeleton typically contains 206 bones, ranging from the longest bone (the femur, the leg bone between the hip and the knee) to the small bones in the middle ear (the malleus, incus, and stapes). The hands alone contain 54 bones. Some of the bones commonly used to estimate height are the femur, the tibia (the larger of the two bones that connect the knee to the ankle), and the humerus (connecting the shoulder to the elbow). Bones are supported by ligaments, tendons, muscles, and cartilage, and together they pro- vide protection to the body's organs such as the heart, lungs, and brain. Bones represent about a third of the body's weight. The femur is the largest bone in a human body. Its length can be used to estimate the height of a person; height can also be estimated from the humerus. There are a number of different equations available for estimating an adult person's height from a bone length. These are generally derived from making many measurements from bones of people with known heights, and then finding the least-squares linear model to the data. Formula: Many of such equations are derived specifically for males or for females. The ones we will use for this problem are the following, where the bone lengths are in inches: Height estimation from femur length: female height = femur length x 1.94 + 28.7 male height = femur length x 1.88 + 32 Height estimation from humerus length: female height = humerus length x 2.8 + 28.2 male height = humerus length x 2.9 + 27.9

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 2E: (Practice) Write a C++ program that accepts the rectangular coordinates of two points...
icon
Related questions
Question
100%

C language program

 

Write a C program that will ask the user to enter the lengths of a femur bone and a humerus bone from the same person. The program will compute the heights for both
males and females from each bone and print those values.
Problem:
An adult skeleton typically contains 206 bones, ranging from the longest bone (the femur, the leg bone between the hip and the knee)
to the small bones in the middle ear (the malleus, incus, and stapes). The hands alone contain 54 bones. Some of the bones commonly used to estimate height are the
femur, the tibia (the larger of the two bones that connect the knee to the ankle), and the humerus (connecting the shoulder to the elbow). Bones are supported by
ligaments, tendons, muscles, and cartilage, and together they pro- vide protection to the body's organs such as the heart, lungs, and brain. Bones represent about a third
of the body's weight.
The femur is the largest bone in a human body. Its length can be used to estimate the height of a person; height can also be estimated from the humerus. There are a
number of different equations available for estimating an adult person's height from a bone length. These are generally derived from making many measurements from
bones of people with known heights, and then finding the least-squares linear model to the data.
Formula:
Many of such equations are derived specifically for males or for females. The ones we will use for this problem are the following, where the bone lengths are in inches:
Height estimation from femur length:
female height = femur length x 1.94 + 28.7
male height = femur length x 1.88 + 32
Height estimation from humerus length:
female height = humerus length x 2.8 + 28.2
male height = humerus length x 2.9 + 27.9
Transcribed Image Text:Write a C program that will ask the user to enter the lengths of a femur bone and a humerus bone from the same person. The program will compute the heights for both males and females from each bone and print those values. Problem: An adult skeleton typically contains 206 bones, ranging from the longest bone (the femur, the leg bone between the hip and the knee) to the small bones in the middle ear (the malleus, incus, and stapes). The hands alone contain 54 bones. Some of the bones commonly used to estimate height are the femur, the tibia (the larger of the two bones that connect the knee to the ankle), and the humerus (connecting the shoulder to the elbow). Bones are supported by ligaments, tendons, muscles, and cartilage, and together they pro- vide protection to the body's organs such as the heart, lungs, and brain. Bones represent about a third of the body's weight. The femur is the largest bone in a human body. Its length can be used to estimate the height of a person; height can also be estimated from the humerus. There are a number of different equations available for estimating an adult person's height from a bone length. These are generally derived from making many measurements from bones of people with known heights, and then finding the least-squares linear model to the data. Formula: Many of such equations are derived specifically for males or for females. The ones we will use for this problem are the following, where the bone lengths are in inches: Height estimation from femur length: female height = femur length x 1.94 + 28.7 male height = femur length x 1.88 + 32 Height estimation from humerus length: female height = humerus length x 2.8 + 28.2 male height = humerus length x 2.9 + 27.9
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr