Question: Java Programming Problem, having trouble with this one. Write a java program that prompts the user to enter the number of inches as an integer

Java Programming Problem, having trouble with this one.

Write a java program that prompts the user to enter the number of inches as an integer number. The program should then prompt the user to enter the units to convert to as a String. The allowable strings that can be entered are: feet, yards, miles, meters, and kilometers. The entries for units can be in any case. For example, feet, Feet, FEET, and fEEt are all allowable entries. Use a Java switch statement to convert, and display the converted value, which will be converted from inches to the units specified by the user. All values output should be rounded to one decimal place.

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!