Question: 5 . 3 9 LAB: Step counter Instructor note: This is almost identical to 5 . 5 for laps to miles. You will have a

5.39 LAB: Step counter
Instructor note:
This is almost identical to 5.5 for laps to miles. You will have a function and then an if rame _=='_ main _': that gets the input, calls the function, and prints the returned value.
A pedometer treats walking 1 step as walking 2.5 feet. Define a function named feet to_steps that takes a float as a parameter, representing the number of feet walked, and returns the number of steps walked as an integer by using int(). Then, write a main program that reads the number of feet walked as an input, calls function feet_to_steps() with the input as an argument, and outputs the number of steps returned from feet to_steps).
Use floating-point arithmetic to perform the conversion.
Note: Converting a float to an integer may affect the result's accuracy.
Ex: If the input is:
the
60
The program must define and call the following function:
def feet_to_steps(user_feet)
539078.3140466.9329y7
LAB
ACTIVITY
5.39.1: LAB: Step counter
010
main.py
Load default template...
1 # Define your function here
2 if =='':
4 # Type your code here.
 5.39 LAB: Step counter Instructor note: This is almost identical to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!