Problem 2. Distance Conversion (30 points)
Distance is measured using various units like inches, feet, yards etc. Write a program that takes
inches as inputs and converts it to corresponding yards, feet and inches. Remember the following
conversion:
1 ft = 12 in
1 yd = 3 ft
Sample Input and Output: (Your code should print the red texts on the screen. Black texts are
sample user inputs)
Sample Input
Input Inches: 478
Input Inches: 27
Input Inches: 53
Sample Output
478 inches = 13 yards, 0 feet and 10 inches
29 inches = 0 yards, 2 feet and 3 inches
53 inches = 1 yards, 1 feet and 5 inches