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
marissa [1.9K]
4 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]4 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]4 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
How would you describe what would happen to methane if the primary bonds were to break?
erastova [34]

Answer:

All the bonds in methane (CH4CH4) are equivalent, and all have the same dissociation energy.

The product of the dissociation is methyl radical (CH3CH3). All the bonds in methyl radical are equivalent, and all have the same dissociation energy.

The product of that dissociation is methylene (CH2CH2). All the bonds in methylene are equivalent, and all have the same dissociation energy.

The product of that dissociation is methyne (CHCH) .

The C-H bonds in methane do not have the same dissociation energy as C-H bonds in methyl radical, which in turn do not have the same dissociation energy as the C-H bonds in methylene, which are again different from the C-H bond in methyne.

If (by some miracle) you were able to get all four bonds in methane to dissociate absolutely simultaneously, they would all show the same dissociation energy… but that energy, per bond broken, would be different than the energy required to break just one C-H bond in methane, because the products are different.

(In this case, it’s CH4→C+4HCH4→C+4H versus CH4→CH3+HCH4→CH3+H.)

To alter hydrocarbons you add enough energy to break a C-H bond. Why does only one bond break? What concentrates the energy on one C-H bond?

the weakest CH bond is the one that breaks. in plain alkanes it has to do with the molecular orbital interactions between neighboring carbon atoms. look at propane for example. the middle carbon has two C-C bonds, and each of those C-C bonds is strengthened by slight electron delocalization from the C-H bonds overlapping with the antibonding orbitals of the adjacent carbons.

since the C-H bonds on the middle carbon donate electron density to both of its neighbors, those two are weakest.

one of them will break preferentially.

which one actually breaks depends on the reaction conditions (kinetics). frankly it's whichever one ramdomly approaches a nucleophile first. when the nucleophile pulls of one of the H's, the other C-H bonds start to share (delocalize) the negative charge across the whole molecule. so while the middle C feels the majority of the negative charge character, the other two C's take on a fair amount as well...

by the way, alkanes don't really like to break and form anions like that.

a better example would be something like isopropyl iodide, where the C-I bond breaks and the I carries away the electron pair, forming a carbocation (also not particularly stable, but more so than the carbanion).

7 0
3 years ago
What is an automotive system in relation to a vehicle’s structure and operation?
Julli [10]
Answer:

Automotive System. A group of related parts that perform a specific function. Body and Chassis System. Body, frame, suspension, steering, braking which support, stop and enclose the parts of the car.
7 0
1 year ago
Read 2 more answers
The mechanical properties of a metal may be improved by incorporating fine particles of its oxide. Given that the moduli of elas
Sedaia [141]

Answer:

a) 254.6 GPa

b) 140.86 GPa

Explanation:

a) Considering the expression of rule of mixtures for upper-bound and calculating the modulus of elasticity for upper bound;

Ec(u) = EmVm + EpVp

To calculate the volume fraction of matrix, 0.63 is substituted for Vp in the equation below,

Vm + Vp = 1

Vm = 1 - 0.63

Vm = 0.37

In the first equation,

Where

Em = 68 GPa, Ep = 380 GPa, Vm = 0.37 and Vp = 0.63,

The modulus of elasticity upper-bound is,

Ec(u) = EmVm + EpVp

Ec(u) = (68 x 0.37) + (380 x 0.63)

Ec(u) = 254.6 GPa.

b) Considering the express of rule of mixtures for lower bound;

Ec(l) = (EmEp)/(VmEp + VpEm)

Substituting values into the equation,

Ec(l) = (68 x 380)/(0.37 x 380) + (0.63 x 68)

Ec(l) = 25840/183.44

Ec(l) = 140.86 GPa

6 0
4 years ago
State three means of operating a power tool
Shtirlitz [24]
Power tools are usually run on one of the three types of power: Compressed air, electricity, or combustion
3 0
2 years ago
What gives thrill in a roller coaster? High speed or Changing acceleration? Explain your answer.
iris [78.8K]

Answer:

They both work together in order to create a good experience for the passenger, but I think that the answer is changing acceleration because when  the rollercoaster changes acceleration it gives it speed.

Explanation:

I really hope this helps.

8 0
3 years ago
Other questions:
  • Which BEST identifies a contrast in these two passages? A) The actions taken by the bird in the poem cause injuries, but the act
    5·1 answer
  • A three-phase source delivers 4.8 kVA to a wye-connected load with a phase voltage of 214 V and a power factor of 0.9 lagging. C
    6·1 answer
  • What information is needed to set up sales tax in QuickBooks Online for a client who only does business in their home state?
    11·1 answer
  • The relationship between weight and speed is what kind of relationship
    8·1 answer
  • Put four red LED as a straight line and connect each of them to a corresponding analog output. Connect a potentiometer to a 5 Vo
    12·1 answer
  • Horizontal wind turbines have same design for offshore and on shore wind farms. a)-True b)- False
    5·1 answer
  • A 9-m length of 6-mm-diameter steel wire is to be used in a hanger. The wire stretches 18mm when a tensile force P is applied. I
    9·1 answer
  • Smith wants to get a job in network systems. Which major should he choose to give him the best chance of getting a job?
    14·2 answers
  • An air-standard Diesel cycle engine operates as follows: The temperatures at the beginning and end of the compression stroke are
    12·1 answer
  • A bridge a mass of 800 kg and is able to support up to 4 560 kg. What is its structural efficiency?
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!