Description
PRG/211 Week 5 Lab 11.3 User-Defined Functions: Step counter
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. If the input is 5345, the output is 2.6725.
Your program should define and call a function:
Function StepsToMiles(integer userSteps) returns float numMiles
Reviews
There are no reviews yet.