1
Edhesive Computer Science 2.3 Help!
linda231 (1)

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?

You are viewing a single comment. View All
Answered by heyitsmarcus (280) [earned 5 cycles]
View Answer
1
heyitsmarcus (280)

@JustARatherRidi As you learn more, so shall you too help better :)