Project 9: Converting to Yards, Feet, and Inches

Project 9: Variable 'total' has been initialized, which represents the total number of inches for a particular distance.  There is also a working method called floor.

floor(a) returns the value of a rounded down to the integer that is less than or equal to a.

Example: 

floor(3.7) returns 3

floor(22.2) returns 22


Task: Appropriately assign the variables 'yards', 'feet', and 'inches' that use the maximum number of the largest measures first (i.e. maximize the amount of yards, then maximize the amount of feet, then inches).


Example: 100 inches:  2 yards, 2 feet, 4 inches

**If your code works for 5 test cases in a row, you can enter your e-mail address.

Universal Computational Math Methods:

pow(5,2) returns 25.0

abs(-3.0) returns 3

sqrt(49.0) returns 7.0