Ask Question
24 October, 17:37

Instructions Write a program that inputs the length of two pieces of fabric in feet and inches (as whole numbers) and prints the total. Sample Run Enter the Feet: 3 Enter the Inches: 11 Enter the Feet: 2 Enter the Inches: 5 Sample Output Feet: 6 Inches: 4

+2
Answers (1)
  1. 24 October, 19:06
    0
    The code is written in python in the explanation section below

    Explanation:

    a_feet = int (input ("Input the feet of the first fabric: "))

    a_inches = int (input ("input the size in inches for the first piece of fabric: "))

    b_feet = int (input ("input the size in Feet for the second piece of fabric: "))

    b_inches = int (input ("Enter the size in Inches for the second piece of fabric: "))

    sum_inches = a_inches + b_inches

    inches_to_feet = sum_inches / / 12

    rem_from_div = sum_inches % 12

    sum_feet = a_feet + b_feet + inches_to_feet

    print ("Feet: {} Inches: {}". format (sum_feet, rem_from_div))
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Instructions Write a program that inputs the length of two pieces of fabric in feet and inches (as whole numbers) and prints the total. ...” in 📙 Physics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers