Write a program that inputs the length of two pieces of fabric in feet and inches(as whole numbers) and prints the total

Converting from inches to feet requires a modulo operator.
The modulo operator returns the remainder of a division.
The program in Python, where comments are used to explain each line is as follows:
#This gets the input for feet
feet1 = int(input("Enter the Feet: "))
#This gets the input for inches
inch1 = int(input("Enter the Inches: "))
#This gets another input for feet
feet2 = int(input("Enter the Feet: "))
#This gets another input for inches
inch2 = int(input("Enter the Inches: "))
#This calculates the total inches, using the modulo operator
totalInches = (inch1 + inch2)%12
#This calculates the total feet
totalFeet = feet1 + feet2 + (inch1 + inch2)//12
#This prints the required output
print("Feet: {} Inches: {}".format(totalFeet,totalInches))
At the end of the program, the total feet and total inches are printed.
Read more about similar programs at:
https://brainly.com/question/13570855