Ask Question
22 December, 09:48

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. 22 December, 10:10
    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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers