Write a program to convert a U.S. customary system length in miles, yards, feet, and inches to the metric system length in kilometers, meters, and centimeters. The sample run is shown below. After entering the number of miles, yards, feet, and inches in the textboxes, the length should be converted entirely to inches and then divided by 39.37 to obtain the value in meters. The Int function should be used to break the total number of meters into kilometers and meters. The number of centimeters should be displayed to one decimal place. You must use the constants below (see underlined bold text). The needed input (see double underlined), output, constant, and formulas are as follows:
Constants:
- Inches in a mile (63,360)
- Inches in a yard (36)
- Inches in a foot (12)
- Inches to meters (39.37)
Input:
The user will enter the miles, yards, feet, and inches.