Question: Length Conversion Write a program to convert a U . S . Customary System length in miles, yards, feet, and inches to a Metric System
Length Conversion Write a program to convert a US Customary System length in miles, yards, feet, and inches to a Metric System length in kilometers, meters, and centimeters. A sample run is shown in Fig. After the numbers of miles, yards, feet, and inches are entered, the length should be converted entirely to inches and then divided by to obtain the value in meters. The int function should be used to break the total number of meters into a whole number of kilometers and meters. The number of centimeters should be displayed to one decimal place. The needed formulas are as follows:
total inches miles yards feet inches
total meters total inches
kilometers meters
Enter number of miles:
Enter number of yards:
Enter number of feet:
Enter number of inches:
Metric length:
kilometers
meters
centimeter
Please show screen and how you enter the code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
