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
sergeinik [125]
2 years ago
10

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

is 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))
Engineering
2 answers:
Nataly [62]2 years ago
8 0

Answer:

# Program is written in Python Programming Language

# Comments are used for explanatory purpose

# Program starts here

# Accept input

Steps = input (Number of Steps: ")

# Calculate distance

distance = float(2000) * float(steps)

#Print Formatted Result

print('%0.2f' % distance)

# End of Program

.--------

The above program converts number of steps to miles.

At line 5, the number of steps is inputted and stored in variable named Steps.

At line 6, the number of miles is calculated by multiplying 2000 by the content of variable Steps

The result is printed at line 8

Novosadov [1.4K]2 years ago
5 0

Answer:

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

miles = steps / 2000

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

You might be interested in
La probabilidad de que un nuevo producto tenga éxito es de 0.85. Si se eligen 10 personas al azar y se les pregunta si compraría
liq [111]

Answer:

La probabilidad pedida es 0.820196

Explanation:

Sabemos que la probabilidad de que un nuevo producto tenga éxito es de 0.85. Sabemos también que se eligen 10 personas al azar y se les pregunta si comprarían el nuevo producto. Para responder a la pregunta, primero definiremos la siguiente variable aleatoria :

X: '' Número de personas que adquirirán el nuevo producto de 10 personas a las que se les preguntó ''

Ahora bien, si suponemos que la probabilidad de que el nuevo producto tenga éxito se mantiene constante (p=0.85) y además suponemos que hay independencia entre cada una de las personas al azar a las que se les preguntó ⇒ Podemos modelar a X como una variable aleatoria Binomial. Esto se escribe :

X ~ Bi(n,p) en donde ''n'' es el número de personas entrevistadas y ''p'' es la probabilidad de éxito (una persona adquiriendo el producto) en cada caso.

Utilizando los datos ⇒ X ~ Bi(10,0.85)

La función de probabilidad de la variable aleatoria binomial es :

p_{X}(x)=P(X=x)=\left(\begin{array}{c}n&x\end{array}\right)p^{x}(1-p)^{n-x}    con x=0,1,2,...,n

Si reemplazamos los datos de la pregunta en la función de probabilidad obtenemos :

P(X=x)=\left(\begin{array}{c}10&x\end{array}\right)(0.85)^{x}(0.15)^{10-x} con x=0,1,2,...,10

Nos piden la probabilidad de que por lo menos 8 personas adquieran el nuevo producto, esto es :

P(X\geq 8)=P(X=8)+P(X=9)+P(X=10)

Calculando P(X=8), P(X=9) y P(X=10) por separado y sumando, obtenemos que P(X\geq 8)=0.820196

7 0
2 years ago
Give me some examples of fragile structures.
Anvisha [2.4K]

Answer:

i don't know if this help tell me if i am wrong

Explanation:

Gravity is the force that pulls all elements of matter together. Matter refers to things you can physically touch. The more matter there is, the greater the amount of gravity or force. This means that the Earth or other planets have a great deal of pull and that everything on Earth is pulled back to Earth.

Some examples of the force of gravity include:

The force that holds the gases in the sun.

The force that causes a ball you throw in the air to come down again.

The force that causes a car to coast downhill even when you aren't stepping on the gas.

The force that causes a glass you drop to fall to the floor.

3 0
3 years ago
For some metal alloy, a true stress of 345 MPa (50040 psi) produces a plastic true strain of 0.02. How much will a specimen of t
saveliy_v [14]

Complete Question

For some metal alloy, a true stress of 345 MPa (50040 psi) produces a plastic true strain of 0.02. How much will a specimen of this material elongate when a true stress of 411 MPa (59610 psi) is applied if the original length is 470 mm (18.50 in.)?Assume a value of 0.22 for the strain-hardening exponent, n.

Answer:

The elongation is =21.29mm

Explanation:

In order to gain a good understanding of this solution let define some terms

True Stress

       A true stress can be defined as the quotient obtained when instantaneous applied load is divided by instantaneous cross-sectional area of a material it can be denoted as \sigma_T.

True Strain

     A true strain can be defined as the value obtained when the natural logarithm quotient of instantaneous gauge length divided by original gauge length of a material is being bend out of shape by a uni-axial force. it can be denoted as \epsilon_T.

The mathematical relation between stress to strain on the plastic region of deformation is

              \sigma _T =K\epsilon^n_T

Where K is a constant

          n is known as the strain hardening exponent

           This constant K can be obtained as follows

                        K = \frac{\sigma_T}{(\epsilon_T)^n}

No substituting  345MPa \ for  \ \sigma_T, \ 0.02 \ for \ \epsilon_T , \ and  \ 0.22 \ for  \ n from the question we have

                     K = \frac{345}{(0.02)^{0.22}}

                          = 815.82MPa

Making \epsilon_T the subject from the equation above

              \epsilon_T = (\frac{\sigma_T}{K} )^{\frac{1}{n} }

Substituting \ 411MPa \ for \ \sigma_T \ 815.82MPa \ for \ K  \ and  \  0.22 \ for \ n

       \epsilon_T = (\frac{411MPa}{815.82MPa} )^{\frac{1}{0.22} }

            =0.0443

       

From the definition we mentioned instantaneous length and this can be  obtained mathematically as follows

           l_i = l_o e^{\epsilon_T}

Where

       l_i is the instantaneous length

      l_o is the original length

Substituting  \ 470mm \ for \ l_o \ and \ 0.0443 \ for  \ \epsilon_T

             l_i = 470 * e^{0.0443}

                =491.28mm

We can also obtain the elongated length mathematically as follows

            Elongated \ Length =l_i - l_o

Substituting \ 470mm \ for l_o and \ 491.28 \ for \ l_i

          Elongated \ Length = 491.28 - 470

                                       =21.29mm

4 0
3 years ago
The AGC control voltage: ___________
lyudmila [28]

Answer:

The AGC circuit operates with an input voltage range of 60 dB (5 mV p-p to 5 V p-p), with a fixed output voltage of 250 mV p-p.

Explanation:

3 0
2 years ago
If a student doesn't major in Engineering as an undergraduate, They could still find a successful
34kurt

Answer:

True

Explanation:

It could either be true or false because you dont really have to be great at something just to do it, you could try new things too.

5 0
2 years ago
Read 2 more answers
Other questions:
  • Based in bonding theory, explain why heat capacity increases when you consider metals, ceramics and polymers.
    14·1 answer
  • Two Technicians are discussing ShopKey Pro. Technician
    12·1 answer
  • Which two is right about febuary 14
    7·2 answers
  • A stream of air enters a 7.00-cm ID pipe at a velocity of 30.0 m/s at 27.0°C and 1.80 bar (gauge). At a point downstrream, the a
    15·1 answer
  • The statement that is NOT true about the difference between laminar and turbulent boundary layers is:1.the Reynolds number for a
    8·1 answer
  • Please can you solve it for me I need it ​
    11·1 answer
  • Suppose that the time (in hours) required to repair a machine is an exponentially distributed random variable with parameter ???
    13·1 answer
  • How could the location of tests affect the performance of a catapult ?
    6·2 answers
  • Write a script (Program 2) to perform t he following matrix operations. Use output commands to clearly output each problem with
    15·1 answer
  • Lets try to get to 100 sub before charismas day <br> Jordan Gracia 32 sub and 5 videos
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!