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
A fair die is thrown, What is the probability gained if you are told that 4 will
Semmy [17]

Answer:

1/6

Explanation:

A dice has 6 sides, the probability of 4 appearing is 1/6.

7 0
3 years ago
(a) Draw the Moore finite state machine (FSM) of an electronic combination lock with a RESET button, two number buttons (0 and 1
Dafna11 [192]

Answer:

Explanation:

There are a total of 6 states and 3 bits in this problem. Whenever the Reset button is pressed, RESET state is called otherwise the state according to the diagram is called. For the combination to be "01011", the input sequence has to be in the same order. If 0 is pressed instead of 1 in state "010", the last state of output ending with 0 will be called and likewise in all the states that follow.

7 0
3 years ago
A commercial refrigerator with refrigerant -134a as the working fluid is used to keep the refrigerated space at -30C by rejectin
Mariana [72]

Answer:

a) 0.487

b) refrigeration load = 5.46w

c) cop = 2.24

d)ref load max = 12.43kw

Explanation:

6 0
4 years ago
Read 3 more answers
Solar energy stored in large bodies of water, called solar ponds, is being used to generate electricity. If such a solar power p
fgiga [73]

Answer: 1.137*10^7 Btu/h.

Explanation:

Given data:

Efficiency of the plant = 4.5percent

Net power output of the plant = 150kw

Solution:

The required collection rate

QH = W/n

= 150/0.045 * 0.94782/ 1 /60 */60 Btu/h.

= 3333.333 *3412.152Btu/h.

= 11373840 Btu/h

= 1.137*10^7 Btu/h.

3 0
3 years ago
6. Driving with parking lights only (in place of headlights) is against the law. A. True B. False
trasher [3.6K]

Answer:

B false it is illegal to only have got fog lights on though and bright headlights because it can distract other drivers going last and if the y are distracted then that will cause a collision

Hope this helps :)

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • Which sentence about the technology design process is true
    12·1 answer
  • The Emergency Stop Button icon on the Inputs toolbar can be used to press or release the Emergency Stop button on the CNC machin
    10·1 answer
  • Determine the maximum volume in gallons​ [gal] of olive oil that can be stored in a closed cylindrical silo with a diameter of 3
    12·1 answer
  • A heat recovery device involves transferring energy from the hot flue gases passing through an annular region to pressurized wat
    6·1 answer
  • A steel bar 100 mm long and having a square cross section 20 mm x 20 mm is pulled in
    6·1 answer
  • In terms of the atomic radius, R, determine the distance between the centers of adjacent atoms for the FCC crystal structure alo
    15·1 answer
  • Place these events in chronological order. Put the numbers 1-6 next to the<br> events.
    15·1 answer
  • This just a question that I keep forgetting, are lightskin people black.??
    6·2 answers
  • Which design activity is part of the design for manufacturability (DFM) methodology?
    10·1 answer
  • The diameter of a cylindrical water tank is Do and its height is H. The tank is filled with water, which is open to the atmosphe
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!