Answered step by step
Verified Expert Solution
Link Copied!
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

image text in transcribedUse 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 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_2

Step: 3

blur-text-image_3

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

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students explore these related Databases questions