answersLogoWhite

0


Best Answer

An example: Feet for first piece of fabric: 2 Inches for first piece of fabric: 7

Feet for 2nd piece of fabric: 2, Inches for 2nd piece of fabric: 6

I need the program to print: Feet: 5 Inches: 1

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do I 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?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How many yards of fabric for 29 x 53?

One yard of fabric is 36 inches. Bolts come in two sizes: 44 inches, and 54 inches. If you need a piece of fabric that is 29 inches x 53 inches, you'll need 29 inches of fabric, or 7/8 of a yard.


How many yards of fabric for 102 by 39 inches?

There are 110.5 yards of fabric for 102 by 39 inches. 1 yard is equivalent to 36 inches.


How many inches in five eighths of a yard of fabric?

22.5 Inches


How wide is quilt fabric?

Most quilt fabric is 45 inches wide with 40 - 42 inches of usable fabric. (You have to cut off the selvages.) Some extra wide fabric can be purchased for backing that is 108 inches wide.


How many yards of fabric is 102 inches x 108 inches?

102 inches by 108 inches is exactly 8.5 square yards.


How many meters of fabric for curtains 72 inches x 60 inches?

The amount of fabric required is 72 in x 60 in = 4320 square inches. This is approximately 2.79 square metres NOT METRES. The length of fabric required will depend on the width in which the fabric is sold.


What is larger a meter of fabric or a yard of fabric?

A yard of fabric is measured at 36 inches. A meter of fabric is 39. something something, just a slight half inch under 40 inches.


How do I write a program that inputs the length of two pieces of fabric in feet and inches as whole numbers and prints the total?

#include <stdio.h> int main (void) { unsigned f1, i1, f2, i2; scanf ("Enter the 1st length in feet and inches: %u%u", f1, i1); scanf ("Enter the 2nd length in feet and inches: %u%u", f2, i2); unsigned inches = i1 + i2 + (12 * (f1 + f2)); // sum the inches (convert feet to inches) unsigned feet = inches / 12; // convert inches to feet inches %= 12; // determine the remaining inches printf ("The total length is %u feet %u inches.\n", feet, inches); return 0; }


When someone sells fabric saying its up to 45 inches how many inches does it have to be?

Anything from 0 inches to 45 inches would satisfy the stated dimensions.


How many 10 inch' squares from one yard of fabric?

If the fabric is 44 inches wide and 36 inches long (one yard), you will get a maximum of 4 x 3 or 12 10-inch squares.


How many inches in a foot of fabric?

12


How many square inches are in a piece of fabric 12 inches wide by 12 yards long?

The area of a rectangle 12 inches by 12 yards is 5184 square inches, since 12 inches * 12 yards * 36 inches/yard = 5184 square inches.