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
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
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
C language program
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images
Knowledge Booster
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.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education