Question: Using Java to write the code Height conversion Complete the following code in order to prompt the user for his/her full name (first name, middle

Using Java to write the code
 Using Java to write the code Height conversion Complete the following
code in order to prompt the user for his/her full name (first

Height conversion Complete the following code in order to prompt the user for his/her full name (first name, middle name and last name separately) and then for his/her height in inches, then the code has to convert and display the height in inches to feet, then ft" in', then meters. For the conversions, please consider that 12 inches is 1 foot. Also, use the conversion rate 0.0254 as your inches to meters conversion rate. For example, 1 inch is 0.0254 meters. Try to solve this problem by defining constant values (use keyword final) that will store the conversion rate specified above. Then, use these constant values in your calculations. (This is not a requirement but something that will make the code readability better) Note: The java.util.Scanner is already imported. In your submission, you do not have to import it again. If you import again, you will get an error in your submissions. ES For the input: First name: William Middle name: Jefferson Last name: Clinton Height (in inches): 75 For the output: Full Name: Clinton, William Jefferson Height in inches: 75 Height in feet & inches: 6 ft 3 in. Height in feet: 6.0833 Height in meters: 1.854139 Last name: Clinton Height (in inches): 75 For the output: Full Name: Clinton, William Jefferson Height in inches: 75 Height in feet & inches: 6 ft. 3 in. Height in feet: 6.0833 Height in meters: 1.854139 i V/ IMPORTANT: YOU DO NOT HAVE TO DEFINE THE MAIN CLASS. Directly write your answer here 2 // You Do not need to import java.util.Scanner, it is already imported. 3 4 5 System.out.println("Full Name:" + lastName + + firstName middleName): 6 System.out.println("Height in inches: " + height In Inches): 7 System.out.println("Height in feet: "+ height InFeet): 8 System. out.println("Height in feet & inches: *+ heightFeetPart +" ft. *+ height InchesPart +" in."): 9 System.out.println("Height in meters: "theightInMeters): Submit

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!