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

How many grams are in 6.02 x 10^23 molecules of glucose C6H12O6?
Please Help I Will Mark Brainly! Please.
Find of the length of the missing side. The triangle is not drawn to scale.
What numbers are missing from the pattern below? 15,16,18,21,?,?,?,?, 51,60,70,81
categories types of white blood cell into T- helper cell & B- cell
I need help with 28,29,30 Also can you explain how you got it? Please help me
describe how food is moved through the gut (3 marks)
The house has a form of a rectangle with one side two and a half times as long as the other side. a)Construct the expression for the area of the rectangle in te
yesterday Levi Lydia and Lena shared 4 pounds of candy how much candy did each child receive?
My cat weighs 80 N. The area of the bottom of her foot is appproximatly 0.0045 m(squared) if she stands on one foot, how much pressure is she exerting on that