PRG/211 Week 5 Lab 11.3 User-Defined Functions: Step counter

$ 8

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

917 in stock

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.

Only logged in customers who have purchased this product may leave a review.

You may also like…