brookewallce4967 brookewallce4967
  • 13-01-2021
  • Computers and Technology
contestada

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.

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 18-01-2021

Answer:

The program in Python is as follows:

steps = int(input("Steps: "))

miles= steps/2000

print("Miles: "+str(miles))

Explanation:

This prompts the user for number of steps

steps = int(input("Steps: "))

This calculates the miles walked

miles= steps/2000

This prints the calculated miles

print("Miles: "+str(miles))

Answer Link

Otras preguntas

Find the area of a regular hexagon with an apothem of 42 inches. Write an exact answer - no rounding!
3. FACTOR f(x) = x3 + 2x2 – 51x + 108 completely given x + 9 is a factor.
How did the political climate in Italy change after unification?
pls help The distance from the Earth to the Sun is approximately 93,000,000 miles. What is this distance expressed in scientific notation? Answer options with 5
Which data set would be represented by a line graph?
Help me? I don’t really know how to do this stuff, so please help me?
Hey awesome lovelies, if you could help me out it would be great! Write a headline that reflects your point of view about the Industrial Revolution. Brainliest
pata adaptada para la nacion​
The stem-and-leaf plot represents the number of flowers in different public gardens throughout the city. How many gardens have at least 18 flowers, but fewer th
If the four-firm concentration ratio for industry X is 60, Multiple Choice the four largest firms account for 60 percent of total sales. each of the four larges