The language used is Python and the question asks - Write a program that inputs the length of two pieces of fabric in feet and inches (as whole numbers) and prints the total. Enter the Feet for the first piece of fabric: 3 Enter the Inches for the first piece of fabric: 11 Enter the Feet for the second piece of fabric: 2 Enter the Inches for the second piece of fabric: 5 It displays: Feet: 6 Inches: 4
So far I have this: x=float(input("Enter the Feet for the first piece of fabric:")) y=float (input("Enter the Inches for the first piece of fabric:")) j=float (input("Enter the Feet for the second piece of fabric:")) k=float (input("Enter the Inches for the second piece of fabric:")) print ("Total: "+str((x+j%(k+y)) And it just ain't working Can someone help?
The language used is Python and the question asks - Write a program that inputs the length of two pieces of fabric in feet and inches (as whole numbers) and prints the total.
Enter the Feet for the first piece of fabric: 3
Enter the Inches for the first piece of fabric: 11
Enter the Feet for the second piece of fabric: 2
Enter the Inches for the second piece of fabric: 5
It displays:
Feet: 6 Inches: 4
So far I have this:
x=float(input("Enter the Feet for the first piece of fabric:"))
y=float (input("Enter the Inches for the first piece of fabric:"))
j=float (input("Enter the Feet for the second piece of fabric:"))
k=float (input("Enter the Inches for the second piece of fabric:"))
print ("Total: "+str((x+j%(k+y))
And it just ain't working
Can someone help?
@JustARatherRidi Thanks! I'll remember your advice!