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]
3 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]3 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]3 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
What is HEX? <br><br> Need help in Computer Programming
ser-zykov [4K]

Hexadecimal is a base16 way of representing numerical values in a way a human can remember, it is not easier for the computer to read it but it is for a human. Hex can have both letters and numbers, as soon as the binary value gets above 9 it is replaced with a letter. Numbers are used from 0 to 9 and letters are used between binary values 10 and 16, hex does not go above 16 instead it just simply gets another digit.

For example, if there is a hex code of D9 then in decimal, it represents the number 139.

Hope this helps!

5 0
3 years ago
Why are dynamic heads greater than static heads?
Shtirlitz [24]

Answer:

4. Because they include the static heads plus the friction

7 0
4 years ago
The tool that can be used to depict main causes for an identified quality problem, subdivided into categories represented as mac
scoray [572]
It is called an Cause-and-effect diagram.
8 0
4 years ago
In modern construction, studs are usually cut to exact length at the mill. They are designated by the letters
ehidna [41]

Answer:

P.E.T

Explanation:

Stud is a short form of stud wall which are typically vertical framing members in a wall of a building. Wall studs are available in standard lengths but since the height of ceiling vary, sometimes one has to cut the stud walls on site to fit. Therefore, there are pre-cut studs which are more efficient  in implementation. These are usually referred as Precision-End Trimmed studs, (P.E.T). Therefore, stud walls which are cut to exact length at the mill for modern construction are designated by letters P.E.T

3 0
4 years ago
While at a concert you notice five people in the crowd headed in the same direction. Your tendency to group them is due to? *
Vlada [557]

Answer:

common fate

Explanation:

The gestalt effect may be defined as the ability of our brain to generate the whole forms from the groupings of lines, points, curves and shapes. Gestalt theory lays emphasis on the fact that whole of anything is much greater than the parts.

Some of the principles of Gestalt theory are proximity, similarity, closure, symmetry & order, figure or ground and common fate.

Common fate : According to this principle, people will tend to group things together which are pointed towards or moving in a same direction. It is the perception of the people that objects moving together belongs together.

7 0
3 years ago
Other questions:
  • Water at atmospheric pressure boils on the surface of a large horizontal copper tube. The heat flux is 90% of the critical value
    15·1 answer
  • Why is low voltage advantageous in arc welding?
    5·1 answer
  • Calculate the volume of a hydraulic accumulator capable of delivering 5 liters of oil between 180 and 80 bar, using as a preload
    6·1 answer
  • Which among the four that doesn't use an elbow in wiring installation a.EMT b. CPC c.PVC d.RSC<br>​
    8·1 answer
  • Words and numbers can be<br> printed using many different<br> or type styles.
    14·1 answer
  • A wooden pallet carrying 540kg rests on a wooden floor. (a) a forklift driver decides to push it without lifting it.what force m
    10·1 answer
  • An aircraft component is fabricated from an aluminum alloy that has a plane strain fracture toughness of 30 . It has been determ
    5·1 answer
  • 8. Block A shown in the figure below weighs 2000 N. The chord attached to A passes over a
    9·1 answer
  • 5. Which of the following is false about onStep?
    14·1 answer
  • A high compression ratio may result in;
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!