Write a program that prompts the user to input a length expressed in centimeters. The program should then convert the length to inches and output the length expressed in yards, feet, and inches, in that order. For example suppose the input for centimeters is 312. To the nearest inch, 312 centimeters is equal to 123 inches. 123 inches would be this output:

3 yards, 1 foot, and 3 inches.

hey basically i was assigned this problem. I have no problem with coding this, its just that I have no idea how to do the math. I know you have to do something with the modulus and i know the conversions, but i just am having a hard time with designing the algorithm. Any help would be apprecciated! Thanks!