Question: A pedometer treats walking 1 step as walking 2 . 5 feet. Define a function named feet _ to _ steps that takes a float
A pedometer treats walking step as walking feet. Define a function named feettosteps 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 feettosteps with the input as an argument, and outputs the number of steps returned from feettosteps
Use floatingpoint arithmetic to perform the conversion.
Note: Converting a float to an integer may affect the result's accuracy.
Ex: If the input is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
