answer.
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
marissa [1.9K]
2 years ago
4

A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output i

s the miles walked. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print('{:.2f}'.format(your_value)) Ex: If the input is:

Engineering
2 answers:
Nataly [62]2 years ago
6 0

Answer:

input 5345 output 2.67

Explanation:

given data

treats walking step =  2,000

distance = 1 mile

solution

if we input here 5345

then there output will be 2.67

as

#Code.py

def steps_to_miles(user_steps):

return user_steps/2000

steps = int(input())

miles = steps_to_miles(steps)

print('%0.2f' % miles)

so as input 5345 output 2.67

Sonbull [250]2 years ago
6 0

Answer:

steps = int(input("Enter the number of steps: "))

miles = steps / 2000

print('{:.2f}'.format(miles))

Explanation:

You might be interested in
Problem 5) Water is pumped through a 60 m long, 0.3 m diameter pipe from a lower reservoir to a higher reservoir whose surface i
kap26 [50]

Answer:

\epsilon = 0.028*0.3 = 0.0084

Explanation:

\frac{P_1}{\rho} + \frac{v_1^2}{2g} +z_1 +h_p - h_l =\frac{P_2}{\rho} + \frac{v_2^2}{2g} +z_2

where P_1 = P_2 = 0

V1 AND V2  =0

Z1 =0

h_P = \frac{w_p}{\rho Q}

=\frac{40}{9.8*10^3*0.2} = 20.4 m

20.4 - (f [\frac{l}{d}] +kl) \frac{v_1^2}{2g} = 10

we know thaTV  =\frac{Q}{A}

V = \frac{0.2}{\pi \frac{0.3^2}{4}} =2.82 m/sec

20.4 - (f \frac{60}{0.3} +14.5) \frac{2.82^2}{2*9.81} = 10

f  = 0.0560

Re =\frac{\rho v D}{\mu}

Re =\frac{10^2*2.82*0.3}{1.12*10^{-3}} =7.53*10^5

fro Re = 7.53*10^5 and f = 0.0560

\frac{\epsilon}{D] = 0.028

\epsilon = 0.028*0.3 = 0.0084

4 0
2 years ago
4. Water vapor enters a turbine operating at steady state at 1000oF, 220 lbf/in2 , with a volumetric flow rate of 25 ft3/s, and
hodyreva [135]
Yes i is the time of the day you get to frost the moon and back and then you can come over and then go to hang out with me me and then go to hang out
6 0
2 years ago
Tech A says that proper footwear may include both leather and steel-toed shoes. Tech B says that when working in the shop, you o
olga55 [171]

Answer:

Tech A is correct.

Explanation:

If a person is doing something dangerous in a shop, he should wear safety glasses to protect his eyes from danger and also wear leather shoes to protect himself from any electric shock. Leather boots will disconnect a person with direct earth and therefore he can save himself if he gets a electric shock.

6 0
2 years ago
Water (cp = 4180 J/kg·°C) enters the 2.5 cm internal diameter tube of a double-pipe counter-flow heat exchanger at 17°C at a rat
aksik [14]

Answer:

Length = 129.55m, 129.55m

Explanation:

Given:

cp of water = 4180 J/kg·°C

Diameter, D = 2.5 cm

Temperature of water in =  17°C

Temperature of water out = 80°C

mass rate of water =1.8 kg/s.

Steam condensing at 120°C

Temperature at saturation = 120°C

hfg of steam at 120°C = 2203 kJ/kg

overall heat transfer coefficient of the heat exchanger = 700 W/m2 ·°C

U = 700 W/m2 ·°C

Since Temperature of steam is at saturation,

temperature of steam going in = temperature of steam out = 120°C

Energy balance:

Heat gained by water = Heat loss by steam

Let specific capacity of steam = 2010kJ/Kg .°C

Find attached the full solution to the question.

3 0
2 years ago
The pump of a water distribution system is powered by a 6-kW electric motor whose efficiency is 95 percent. The water flow rate
Sonja [21]

Answer:

a) Mechanical efficiency (\varepsilon)=63.15%  b) Temperature rise= 0.028ºC

Explanation:

For the item a) you have to define the mechanical power introduced (Wmec) to the system and the power transferred to the water (Pw).

The power input (electric motor) is equal to the motor power multiplied by the efficiency. Thus, Wmec=0.95*6kW=5.7 kW.

Then, the power transferred (Pw) to the fluid is equal to the flow rate (Q) multiplied by the pressure jump \Delta P. So P_W = Q*\Delta P=0.018m^3/s * 200x10^3 Pa=3600W.

The efficiency is defined as the ratio between the output energy and the input energy. Then, the mechanical efficiency is \varepsilon=3.6kW/5.7kW=0.6315=63.15\%

For the b) item you have to consider that the inefficiency goes to the fluid as heat. So it is necessary to use the equation of the heat capacity but in a "flux" way. Calling <em>H</em> to the heat transfered to the fluid, the specif heat of the water and \rho the density of the water:

[tex]H=(5.7-3.6) kW=\rho*Q*c*\Delta T=1000kg/m^3*0.018m^3/s*4186J/(kg \ºC)*\Delta T[/tex]

Finally, the temperature rise is:

\Delta T=2100/75348 \ºC=0.028 \ºC

7 0
2 years ago
Other questions:
  • Compute the mass fractions of α ferrite and cementite in pearlite. Assume T=726⁢ C∘.
    15·1 answer
  • An excavation is at risk for cave-in and water accumulation because of the excess soil that has accumulated. What type of excava
    12·1 answer
  • An uninsulated, thin-walled pipe of 100-mm diameter is used to transport water to equipment that operates outdoors and uses the
    9·1 answer
  • Water is to be withdrawn from an 8-m-high water reservoir by drilling a 2.2-cm-diameter hole at the bottom surface. Disregarding
    12·2 answers
  • Vehicles arrive at a single toll booth beginning at 8:00 A.M. They arrive and depart according to a uniform deterministic distri
    9·1 answer
  • Python Homework
    12·1 answer
  • A glycerin pump is powered by a 5-kW electric motor. The pressure differential between the outlet and the inlet of the pump at f
    13·1 answer
  • Determine the design angle ϕ (0∘≤ϕ≤90 ∘) between struts AB and AC so that the 400 lb horizontal force has a component of 600 lb
    10·1 answer
  • What is the linear distance traveled in one revolution of a 36-inch wheel
    6·1 answer
  • A fuel oil is burned with air in a furnace. The combustion produces 813 kW of thermal energy, of which 65% is transferred as hea
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!