Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use Java Only You have been tasked to build software for a forensics lab to determine the height of a subject given information about the
Use Java Only
You have been tasked to build software for a forensics lab to determine the height of a subject given information about the length of the humerus or femur bone and the subject's gender. Use the following formulas and test cases: Test Case: Femur Length = 15; Humerus Length = 12; femur_height_female = femur_length x 1.94 + 28.7 = 57.8 in = 4.82 ft = 4 ft 9.8 in femur_height_male = femur_length x 1.88 + 32 = 60.2 in = 5.02 ft = 5 ft.24 in humerus_height_female = humerus_length x 2.8 + 28.2 = 61.8 in = 5.15 ft = 5 ft 1.8 in humerus_height_male = humerus x 2.9 + 27.9 = 62.7 in = 5.23 ft = 5 ft 2.76 in Your program should ask: (1) if the user is male or female, and (2) if the bone length that will be provided is for the femur or humerus. You must use a boolean variable to store each of the responses to these questions. Next your program should ask the user to enter the bone length (in inches) and store that in a double variable. Finally display the estimated height of the subject in inches and feet as shown below. * Forensics Analysis System, version 1.0 * Is subject male (1 = Y/ 2 = N): 1 Is bone sample femur (1 = Y/ 2 = N): 1 Enter the bone length (inches): 15 The estimated height of the subject is: 60.2 in 5.016666666666667 ftStep 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