1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
viktelen [127]
3 years ago
14

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
Physics
1 answer:
diamong [38]3 years ago
4 0

Answer:

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))

You might be interested in
A solenoid is built with 870 turns uniformly distributed over a length of 0.390 m to produce a magnetic field of magnitude 1.00
Y_Kistochka [10]

Answer:

35.7 mA

Explanation:

The magnetic field inside a solenoid is given by:

B=\mu_0 I n (1)

where

\mu_0 = 4\pi \cdot 10^{-7} H/m is the vacuum permeability

I is the current

n is the number of turns per unit length

Since we have

N = 870 turns

L = 0.390 (length of the solenoid)

we can calculate n

n=\frac{N}{L}=\frac{870}{0.390}=2230.8

And now we can re-arrange eq.(1) to find the current, I:

I=\frac{B}{\mu_0 n}=\frac{1.00\cdot 10^{-4} T}{(4\pi\cdot 10^{-7} H/m)(2230.8m^{-1})}=0.0357 A = 35.7 mA

6 0
3 years ago
What are igneous intrusions and extrusions
spayn [35]

Igneous intrusions form when magma cools and solidifies before it can reach the surface. An extrusion consists of extrusive rock; which forms above the surface of the crust.

3 0
3 years ago
The major evidence for the idea that the expansion of the universe is accelerating comes from observations of:
elena-14-01-66 [18.8K]
The redshirting of the spectra of distant galaxies.  They are moving away from us at a rate proportional to their distance
7 0
4 years ago
How is light energy different from both sound and heat energy?
SIZIF [17.4K]

Light always travels in a straight line when going through a single medium, any substance through which a light wave can travel. In some mediums, such as air, light travels quickly. ... Heat, light and sound are similar to each other. They are forms of energy and they travel in waves.

6 0
4 years ago
Read 2 more answers
A client with a history of chronic alcoholism is brought to the emergency department after falling. He is disoriented, with peri
Flauer [41]

Answer:

Magnesium, potassium, calcium and sodium

Explanation:

Chronic alcoholism induces renal tubular dysfunction leading to loss of renal Magnesium called Hypomagnesemia. This state often induce peripheral resistance to parathyroid hormone leading to hypocalcemia (reduction of calcium). There is equally loss of or reduction in gastrointestinal absorption causing reduction in phosphate. Magnesium reduction also contribute to reduction in potassium. The reduction in magnesium has been attributed to dysrhythmias  

7 0
3 years ago
Read 2 more answers
Other questions:
  • Suppose a flexible, adaptive iol has a focal length of 3.00 cm. how far forward must the iol move to change the focus of the eye
    15·1 answer
  • What is the difference in electrical potential energy between two places in an electric field?
    9·2 answers
  • What happens to light when it enters a lens? A) It speeds up B) It is reflected C) It is refracted D) It becomes brighter.
    11·2 answers
  • To what extent do covalent compounds conduct electricity?
    7·2 answers
  • A 500 N force is applied to an object accelerating at 25 m/s^2.<br> what is the mass of the object?
    7·1 answer
  • - What will be the field strength from a 1.25* 10^-3 when measured 0.4m from the charge?
    6·1 answer
  • Which macronutrient is made up of carbon and hydrogen elements joined together in long groups called hydrocarbons?
    12·1 answer
  • There is the more role of the moon than the sun to occur tides in the oceans,why?
    12·1 answer
  • You submerge 100 grams of steel in 200 grams of water. If the steel has an initial temperature of 90°C and the water has an init
    9·1 answer
  • How do stairs reduce the
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!