Write UnitConverter with three named constants (public static final double): KM_PER_MILE = 1.609344, KG_PER_POUND = 0.45359237, CM_PER_INCH = 2.54.
Read miles, pounds and inches and print (2 decimals):
10.00 miles = 16.09 km
150.00 lb = 68.04 kg
12.00 in = 30.48 cm
Why are constants better than writing 1.609344 directly in the formula?