Ask Question
11 December, 07:58

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

+5
Answers (1)
  1. 11 December, 09:16
    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?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers