Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use JAVA You have been tasked to build software for a forensics lab to determine the height of a subject given information about the

image text in transcribed

please use JAVA

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. What might have led to the misinformation?

Answered: 1 week ago