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
AfilCa [17]
4 years ago
13

python Distance Traveled The distance a vehicle travels can be calculated as follows:Distance = Speed × Time For example, if a t

rain travels 40 miles per hour for three hours, the distance traveled is 120 miles. Design a program that asks the user for the speed of a vehicle (in miles per hour) and how many hours it has traveled. It should then use a loop to display the distance the vehicle has traveled for each hour of that time period. Here is an example of the output
Engineering
1 answer:
faust18 [17]4 years ago
3 0

Answer:

def show_travel(time,speed):

print("Hour\tDistance Travelled\n")

print("-----\t----------\n");

for i in range(1,time+1):

res=i*speed

print('%d\t\t%.1f'%(i,res))

def main():

speed=int(input("What is the speed of the vehicle in mph: "))

while speed <= 0:

print("speed must be greater than zero \n")

speed=int(input("What is the speed of the vehicle in mph: "))

time=int(input("How many hours has it traveled: "))

while time <= 0:

print("time must be greater than zero \n")

time=int(input("How many hours has it traveled: "))

show_travel(time,speed)

if __name__== "__main__":

main()

You might be interested in
Please help i will give brainilest
Eduardwww [97]

Answer:

I hot u

Explanation:

it makes things function better and more fluently than a manual version of the certain object

8 0
3 years ago
Read 2 more answers
1. A gas pressure difference is applied to the legs of a U-tube manometer filled with a liquid with S = 1.5. The manometer readi
julia-pushkina [17]

Answer:

1) The pressure difference is 4.207 kilopascals.

2) 2.5 pounds per square inch equals 5.093 inches of mercury and 5.768 feet of water.

Explanation:

1) We can calculate the gas pressure difference from the U-tube manometer by using the following hydrostatic formula:

\Delta P = \frac{S\cdot \rho_{w}\cdot g \cdot \Delta h}{1000} (Eq. 1)

Where:

S - Relative density, dimensionless.

\rho_{w} - Density of water, measured in kilograms per cubic meter.

g - Gravitational acceleration, measured in meters per square second.

\Delta h - Height difference in the U-tube manometer, measured in meters.

\Delta P - Gas pressure difference, measured in kilopascals.

If we know that S = 1.5, \rho_{w} = 1000\,\frac{kg}{m^{3}}, g = 9.807\,\frac{m}{s^{2}} and \Delta h = 0.286\,m, then the pressure difference is:

\Delta P = \frac{1.5\cdot \left(1000\,\frac{kg}{m^{3}} \right)\cdot \left(9.807\,\frac{m}{s^{2}} \right)\cdot (0.286\,m)}{1000}

\Delta P = 4.207\,kPa

The pressure difference is 4.207 kilopascals.

2) From Physics we remember that a pound per square unit equals 2.036 inches of mercury and 2.307 feet of water and we must multiply the given pressure by corresponding conversion unit: (p = 2.5\,psi)

p = 2.5\,psi\times 2.037\,\frac{in\,Hg}{psi}

p = 5.093\,in\,Hg

p = 2.5\,psi\times 2.307\,\frac{ft\,H_{2}O}{psi}

p = 5.768\,ft\,H_{2}O

2.5 pounds per square inch equals 5.093 inches of mercury and 5.768 feet of water.

4 0
4 years ago
a steal bar with 1 in diameter has been subjected to a tensile force of 3 tons find tensile stress in the bar
Marysya12 [62]

Answer:

stress = 8,556 Psi.   or  (stress = 59 Mpa)

Explanation:

stress = force / area

force P = 3 tons (convert to lbs. for units consistency)

1 ton = 2240 lbs.

P = 6,720 lbs.

steel bar Diameter D = 1 in. (convert to d

Area of steel bar = (π *  1²) / 4 = 0.785 in²

therefore, stress = 6720 lbs. / 0.785 in²

stress = 8,556 Psi.

in Mpa ----- 8556 Psi * 0.00689476 MPa/Psi = 59 Mpa

6 0
3 years ago
As resistors are added in series to a circuit, the total resistance will
olganol [36]

The equivalent of the resistance connected in the series will be Req=R₁+R₂+R₃.

<h3>
What is resistance?</h3>

Resistance is the obstruction offered whenever the current is flowing through the circuit.

So the equivalent resistance is when three resistances are connected in series. When the resistances are connected in series then the voltage is different and the current remain same in each resistance.

V eq    =    V₁    +    V₂    +    V₃

IReq    =    IR₁    +    IR₂   +    IR₃

Req    =    R₁    +    R₂   +    R₃

Therefore the equivalent of the resistance connected in the series will be Req=R₁+R₂+R₃.

To know more about resistance follow

brainly.com/question/24858512

#SPJ4

8 0
2 years ago
What is 220 C in degrees Fahrenheit (F)?
8_murik_8 [283]

Answer:

428°F

Explanation:

The equation to convert degrees Celsius to degrees fahrenheit is

°F (degrees fahrenheit) = (9/5 * °C (degrees celsius) ) + 32

°F = (9/5 * 220 °C (degrees celsius)) +32 = 428 °F (degrees fahrenheit)

4 0
3 years ago
Other questions:
  • Tech A says that thrust angle refers to the direction the front wheels are pointing. Tech B says that scrub radius refers to the
    8·1 answer
  • Suppose we are managing a consulting team of expert computer hackers, and each week we have to choose a job for them to undertak
    12·1 answer
  • A simple supported beam at x0 = 0 and xn = L with a uniform load w and the
    15·2 answers
  • declare integer product declare integer number product = 0 do while product &lt; 100 display ""Type your number"" input number p
    8·1 answer
  • Name the point of intersection, where the axis meet.
    6·1 answer
  • Toddlers are children from three to four years of age.<br> True<br> False
    15·2 answers
  • At what distance from the Earth’s surface is a 10,000 kg satellite if its potential energy is equal to –5.58 x 1011 J? (choose t
    5·1 answer
  • Can I get an answer to this question please
    11·1 answer
  • The only difference between all GMA welding machines and some FCA welding machines is that all GMA welding machines must have a
    14·1 answer
  • Technician A says that the definition of torque is how far the crankshaft twists in degrees.Technician B says that torque can re
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!