Question: Please use JAVA // put comment You have been tasked to build software for a forensics lab to determine the height of a subject given

 Please use JAVA // put comment You have been tasked to

Please use JAVA

// put comment

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 ft

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